473,396 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

best way to set line width

Hi. It has been suggested that I adjust line length in my pages online.
Using Google to search for max-width, I have found at least two different
methods to get Internet Explorer to emulate max-width.

My questions are: should I change my margins from 6% (their current value)
to 8% or more? Obviously that will affect everything on the page, not just
lines of text.

If I use max-width, how to implement it. In the css for each class? maybe
some sweeping declaration for all <pin my website?

If I use max-width, which of the Internet Explorer workarounds is the best?

My web site is www.TheBicyclingGuitarist.net The home page isn't a problem
with readability, but there are many pages with text in the site (My Studies
pages for example). Thanks
Jul 28 '07 #1
9 20171
The Bicycling Guitarist wrote:
If I use max-width, how to implement it. In the css for each class?
maybe some sweeping declaration for all <pin my website?
If all of your pages' contents were enclosed in a <div id="content">, it
would be easy to add max-width to it. Your pages don't have that so you
would be stuck editing every page in some way or another.

I don't see it as worth the effort. Astute surfers know they can reduce
the width of their browser window. Most won't care.
If I use max-width, which of the Internet Explorer workarounds is the
best?
Ah, it's always a 'workaround' for IE. I wouldn't bother, but that's my
opinion.

--
-bts
-Motorcycles defy gravity; cars just suck
Jul 28 '07 #2
On 7/28/2007 8:10 AM, The Bicycling Guitarist wrote:
Hi. It has been suggested that I adjust line length in my pages online.
Using Google to search for max-width, I have found at least two different
methods to get Internet Explorer to emulate max-width.

My questions are: should I change my margins from 6% (their current value)
to 8% or more? Obviously that will affect everything on the page, not just
lines of text.

If I use max-width, how to implement it. In the css for each class? maybe
some sweeping declaration for all <pin my website?

If I use max-width, which of the Internet Explorer workarounds is the best?

My web site is www.TheBicyclingGuitarist.net The home page isn't a problem
with readability, but there are many pages with text in the site (My Studies
pages for example). Thanks

Your Web site displays okay already.

Don't contrive fixed line-widths. That will only annoy users who don't
have windows set to the width you expect.

Also, don't contrive to meet IE. Instead, develop your pages according
to the W3C specifications and the recommendations of the Viewable with
Any Browser Campaign (at
<http://www.anybrowser.org/campaign/index.html>). If IE can't handle
the W3C specifications, that's a Micro$oft problem and not your problem.

--

David E. Ross
<http://www.rossde.com/>.

Don't ask "Why is there road rage?" Instead, ask
"Why NOT Road Rage?" or "Why Is There No Such
Thing as Fast Enough?"
<http://www.rossde.com/roadrage.html>
Jul 28 '07 #3

"David E. Ross" <no****@nowhere.notwrote in message
news:Te******************************@iswest.net.. .
On 7/28/2007 8:10 AM, The Bicycling Guitarist wrote:
>Hi. It has been suggested that I adjust line length in my pages online.

Your Web site displays okay already.

Don't contrive fixed line-widths. That will only annoy users who don't
have windows set to the width you expect.

Also, don't contrive to meet IE. Instead, develop your pages according
to the W3C specifications and the recommendations of the Viewable with
Any Browser Campaign (at
<http://www.anybrowser.org/campaign/index.html>). If IE can't handle
the W3C specifications, that's a Micro$oft problem and not your problem.

--
If three out of four visitors use IE, that makes it my problem whether I
like it or not. I like the idea of max-width being 30em or so. Lines no
longer than 60 or 70 characters are easier to read in any browser. If their
window goes smaller than that, the max width won't kick in. If it gets
bigger, then the lines won't be difficult to read. Dang Microso$t for not
recognizing max width!
--
tbg
Jul 28 '07 #4
On 2007-07-28, The Bicycling Guitarist wrote:
Hi. It has been suggested that I adjust line length in my pages online.
Using Google to search for max-width, I have found at least two different
methods to get Internet Explorer to emulate max-width.

My questions are: should I change my margins from 6% (their current value)
to 8% or more? Obviously that will affect everything on the page, not just
lines of text.

If I use max-width, how to implement it. In the css for each class? maybe
some sweeping declaration for all <pin my website?

If I use max-width, which of the Internet Explorer workarounds is the best?

My web site is www.TheBicyclingGuitarist.net The home page isn't a problem
with readability, but there are many pages with text in the site (My Studies
pages for example). Thanks
As someone else said, don't worry about IE. Even without a
max-width, your pages are readable. Long lines are not as bad when
there are ample margins and a good line-height. Increasing the
line-height a little will help.

Do use a max-width (I like 35em) for the benefit of those with
conforming browsers, but don't worry about the rest; the page will
degrade gracefully.

--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Jul 29 '07 #5

"Chris F.A. Johnson" <cf********@gmail.comwrote in message
news:9j************@xword.teksavvy.com...
On 2007-07-28, The Bicycling Guitarist wrote:
>Hi. It has been suggested that I adjust line length in my pages online.

My web site is www.TheBicyclingGuitarist.net The home page isn't a
problem
with readability, but there are many pages with text in
As someone else said, don't worry about IE. Even without a
max-width, your pages are readable. Long lines are not as bad when
there are ample margins and a good line-height. Increasing the
line-height a little will help.

Do use a max-width (I like 35em) for the benefit of those with
conforming browsers, but don't worry about the rest; the page will
degrade gracefully.

--
thank you Chris. How should I implement the max-width? Would the following
work in the stylesheet?

p { max-width: 35em; }

Would that be a bad idea to declare it for all <p>?

What about the things like class="center" etc. that I have in my stylesheet.
Do I add the max-width to each of those classes in my stylesheet, or would
declaring all <pto have it cover the other classes as well? Sorry if these
are dumb questions.
Jul 29 '07 #6
Well bust mah britches and call me cheeky, on Sat, 28 Jul 2007 23:27:10
GMT The Bicycling Guitarist scribed:
If three out of four visitors use IE, that makes it my problem whether
I like it or not. I like the idea of max-width being 30em or so. Lines
no longer than 60 or 70 characters are easier to read in any browser.
If their window goes smaller than that, the max width won't kick in.
If it gets bigger, then the lines won't be difficult to read. Dang
Microso$t for not recognizing max width!
Ie7 recognizes it (-though still fails at things like "inherit".)

Moderately simple javascript can compensate for ie6.

--
Neredbojias
Half lies are worth twice as much as whole lies.
Jul 29 '07 #7
Well bust mah britches and call me cheeky, on Sun, 29 Jul 2007 04:22:19 GMT
Neredbojias scribed:
Well bust mah britches and call me cheeky, on Sat, 28 Jul 2007 23:27:10
GMT The Bicycling Guitarist scribed:
>If three out of four visitors use IE, that makes it my problem whether
I like it or not. I like the idea of max-width being 30em or so. Lines
no longer than 60 or 70 characters are easier to read in any browser.
If their window goes smaller than that, the max width won't kick in.
If it gets bigger, then the lines won't be difficult to read. Dang
Microso$t for not recognizing max width!

Ie7 recognizes it (-though still fails at things like "inherit".)

Moderately simple javascript can compensate for ie6.
Here's an example of ie6 max-width I whipped up for a couple of reasons.
Just ignore the warning.

http://tinyurl.com/2vwa7k

--
Neredbojias
Half lies are worth twice as much as whole lies.
Jul 29 '07 #8
Sat, 28 Jul 2007 16:27:10 -0700 from The Bicycling Guitarist
<Ch***@TheBicyclingGuitarist.net>:
If three out of four visitors use IE, that makes it my problem whether I
like it or not. I like the idea of max-width being 30em or so.
Two things wrong with that:

1. It's only a problem if you think your pages should look pixel-for-
pixel identical in different browsers. That's a silly goal, as you
well know.

2. Suppose someone's window is narrower than 30em?
--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jul 29 '07 #9
Stan Brown wrote:
Sat, 28 Jul 2007 16:27:10 -0700 from The Bicycling Guitarist
<Ch***@TheBicyclingGuitarist.net>:
>If three out of four visitors use IE, that makes it my problem whether I
like it or not. I like the idea of max-width being 30em or so.

Two things wrong with that:

1. It's only a problem if you think your pages should look pixel-for-
pixel identical in different browsers. That's a silly goal, as you
well know.
He's not talking about identical; he's talking about implementing
max-width functionality (somehow) in a browser which doesn't support
max-width. If only three people worldwide have it (IE), he won't care,
but 75% of his visitors are harder to ignore.
>
2. Suppose someone's window is narrower than 30em?
It's max-width, Stan. MAX-width.
--
John
Jul 29 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Leonard J. Reder | last post by:
Hello, I am using PIL to annotate some images with lines. I could not find anyway to make the line that is drawn from the ImageDraw object thicker. Does anyone have a suggestion or solution...
5
by: Chris Stromberger | last post by:
I have a div with a width of 40em (is em cool to use for width?). The situation below applies even if width is auto or 80% or something. Inside the div I am displaying some code with <pre> tags. ...
65
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second...
1
by: Rhino | last post by:
I have a working knowledge of CSS but I've been away from it for a while so I'd really appreciate it if someone could get me started with a problem I'm having. I have a wiki which displays just...
2
by: mark4asp | last post by:
What is the best way to write a page that uses min-width and max-width and will work IE6, IE7 and other modern browsers? I realise that I need a hack for IE6 but not for IE7 so what is the...
2
blazedaces
by: blazedaces | last post by:
Hey, I have an application that draws a polyline with Graphics': g.drawPolyline(getXPoints(),getYPoints(),nPoints); It's drawn onto a background image and so the background image is so many...
12
by: Dom | last post by:
VB had a "line" control, just a simple line that let you separate controls without the wasted space of a Groupbox. Did CSharp drop this? Dom
4
by: elukkien | last post by:
Hello! I'm trying to find a way to print out a long string (>400 characters no spaces, tabs or newlines) to a line width of 60 characters. So after every 60 characters a newline would start. Is...
53
by: Gianni Mariani | last post by:
Do you have a preference on maximum line width for C++ code? I've seen the craziest debates on this most silly of topic. I have witnessed engineers spent oodles of time fiddling with line...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.