Forum Moderators: phranque

Message Too Old, No Replies

Ideal web page width?

what is your opinion

         

zeus661

8:28 pm on May 15, 2004 (gmt 0)

10+ Year Member



Not sure if this is the right place to post this question but in your opinion what is the ideal width of a web page? Thanks

asquithea

8:32 pm on May 15, 2004 (gmt 0)

10+ Year Member



Extensively discussed under various guises, but the short answer is:

As wide as your users want it to be.

Llama

8:43 pm on May 15, 2004 (gmt 0)

10+ Year Member



Shoot for fluid when you can. If you can't, then you simply make it look good in 800x600 and 1024x768 (maybe also 640x480.)

wavebird23

12:01 am on May 16, 2004 (gmt 0)

10+ Year Member



Check out this thread: [webmasterworld.com...]

wonderboy

8:48 am on May 16, 2004 (gmt 0)

10+ Year Member



make it to fill 800x600 as around 30-40% still use this res. (Well out of my visitors anyways)
I think that 780 pixels is near the mark, although I am sure there is a standard used by all the web designer doods. Go to a site you like the look of and view the source to check out width of table or whatever they use.

W.

txbakers

3:36 pm on May 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If not fluid, I set my width at 780.

If a report has to be wider, I'll make it dynamic, but still fixed.

Essex_boy

9:33 pm on May 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



about 2'6'' is somewhere near right.

Set it for your screen and hope for teh best.

Krapulator

2:00 am on May 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



100% :)

PCInk

7:54 am on May 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



100%. Someone suggested 780px, which I hear a lot of. It does not work if you open a side panel (such as favorites in IE). There will be horizontal scrolling.

wonderboy

8:52 am on May 17, 2004 (gmt 0)

10+ Year Member



Who opens side panels when wanting to look at a website?

sem4u

8:53 am on May 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is best to go with a fluid layout if you can.

limbo

8:59 am on May 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Many users surf with the history pannel open. Also the MS toolbar defaults to the right screen margin - adds another 20px or so. 780 is too high IMO. 750 is probably safer if you fix page width.

Fluid or Elastic is my preferred style.

Ta

Limbo

ShootinBlanks

2:21 pm on May 17, 2004 (gmt 0)

10+ Year Member



Since I'm still using tables, (haven't upgraded to css yet) I like 85 - 90%, which seems to look acceptable on all monitor widths, and doesn't look really lame on huge ones like the fixed width pages do.

ergophobe

2:58 pm on May 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Everyone says fluid is the best, but there is a caveat. In the print world, it is well known that readibility goes way down beyond a certain line length (or below a certain line length for that matter, though that looks so bad the error would be rare).

So if the page is primarily text and you let it just stretch to 100%, your readibility will likely be terrible if someone is on a 21" monitor set to a width of 1280 pixels or more. What you want to shoot for is

- 60-75 characters per line for adults
- less (40-50) for children.

I do academic publishing and there is a certain tolerance for even longer line lengths (actually, much longer in our micro-font footnotes), but you would never want to publish a trade paperback with lines as long as you can get away with in the academic world. This is all the more true on screen.

How to translate characters per line to standard CSS units isn't necessarily obvious as this is will depend on the font. Roughly, if you divide by two and add a bit, that gives you the width in ems. So for adults, you would like to keep text blocks under 40 ems for sure, preferably around 30-35em; smaller still if your main audience is learning readers.

I've started using max-width and the IE equivalent for large text blocks.

So in brief, fluid, yes, but only to a point when dealing with large blocks of straight text.

Resources

Ideal line length for content [maxdesign.com.au] from maxdesign

Max width in IE [svendtofte.com] from Svend Tofte

Tom

zone

8:29 am on May 20, 2004 (gmt 0)



I think the 800x600 will be a general size that is supported by most of the browsers....
<snip>

[edited by: Brett_Tabke at 12:29 pm (utc) on May 20, 2004]
[edit reason] Please reread the TOS. no sig files please. [/edit]

ergophobe

1:58 pm on May 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Actually, 800x600 and *above* is what will generally be supported by desktop computers. There are fewer and fewer 640x480 desktop screens out there, but 800x600 is still less than the majority as the number of screens at higher resolutions increases.

That's the point I was driving at in my previous post. You have to think not just about the small end, but how is your layout going to look on a giant monitor.

Tom

isitreal

3:33 pm on May 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



ergophobe: thanks for bringing up the readability issue of long lines, that's something that these 'what is the ideal width for webpages' threads almost always ignore, but it's a huge factor. It took people thousands of years to arrive at that 12 to 20 words per line (roughly) as the amount of information that your brain can comfortably retain until it hits the next line, pick up any non technical book (which as you noted tend to go longer since the audience is usually highly trained to go longer and follow an argument further than a standard reader) and simply count the words, you'll find it is always in that 12-20 word range. This isn't an accident, and it is also the amount of words roughly that a two column layout with left nav bar will have at about 750px resolution. Any less is annoying, like say a list apart, anymore is very hard to read.

While the web has changed slightly how we receive the text we read, it hasn't changed the more basic limitations on memory and language that reading has for us.

If fluid sizing is a must, I'd agree with the above poster that setting page size at 90% (that's not a function of tables or divs, you can do that easily with either construction method) is a pretty good compromise.

What is especially interesting is the failure of organizations who should know better to implement this, like apache, w3c, etc. I've had to start using opera with its user css set to max-width about 40em to read some of these stupid tech sites, hopefully tech types will start realizing that the ideal width can and should be set in ems for paragraphs at least, but if they don't I may have to switch to opera if I can't find a comparable extension in firefox to fix this error.

<added>I found a good link on how to change user CSS [squarefree.com] in IE, Mozilla, and Opera, along with some interesting user CSS samples [squarefree.com].

ebizcamp

4:29 pm on May 20, 2004 (gmt 0)

10+ Year Member



I would say 100% is better.

ergophobe

4:49 pm on May 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




I would say 100% is better.

This is not helpful. Isitreal and I have given some very good reasons based on rules that have been worked out over centuries of people doing text layout and, more recently, usability studies.

I've never seen a book laid out with the text block at 100% and I've never seen a book meant for public consumption with 100 words on a line and, aside from poetry and a few special uses, I haven't seen any books with five words on a line.

If you have a graphic-heavy page, then you need to have some folks with a good eye look and achieve the right balance. For text, though, you can't have a rule like "100%" or "750px".

It's like asking what size a book should be. My rule of thumb: 20cmW 30cmH and 325 pages long. Most people can fit this in their briefcase, so that's how big a book should be.

Tom

ergophobe

4:53 pm on May 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There are currently two threads going on this.

[webmasterworld.com...]

isitreal

5:04 pm on May 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



By the way, one major problem with the svend tofte method for using the IE proprietary css javascript to set min or max widths is that it breaks floats completely in many cases, I gave up on it as soon as I found that problem, but if you use it in a container with no floats it should work very well, it did for me.

Personally, I like both, 100% or 90% fluid layouts together with setting:
p, li, blockquote, h1-6 at a max-width 38-40em, it's the best of both worlds, lets you take advantage of extra screen space for your side bars and floated sidebars when available, and maintains readability.

Commercially I'm sticking to 750px, it's just easier, most users don't resize, and a 600px column at normal font size is about the right width, I have no trouble making that kind of decision for visitors, it's the same as all print publishers have ever done for their readers.

I've also seen the argument: oh, you can always resize the screen if you don't like the size. Obviously by a person who only visits one site a day, and never uses tabs, or any other advanced features.

<added>Oh, just added a mozilla user stylesheet, now these threads have the right width, very nice, except for the first 'paragraph' of each posting, which isn't in a p tag, is there any particular reason that the first 'paragraph' is not a paragraph but uses only <font> tags, is it to avoid that margin-top default of p tags?

ergophobe

6:20 pm on May 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




By the way, one major problem with the svend tofte method ... is that it breaks floats completely

Hmm. I hadn't noticed, though I have seen other mentions of the problem. So if I size a DIV with it, and the div is not floated, it's okay, or will I even have problems if the DIV is merely within a floated element or contains floated elements?


Personally, I like both, 100% or 90% fluid layouts together with setting: p, li, blockquote, h1-6 at a max-width 38-40em, it's the best of both worlds,

That's a good method. I was, of course, only referring to the width of text blocks, which might be all or only a small part of a given page. A page width of 100%=60em=750px (for example) might be just fine if there's 20-25em of graphics, sidebars and so on. It will be a sub-optimal with a full-width text block or, conversely with 45em worth of graphics and sidebars.

In other words, I am NOT saying that 100% is bad, just that it's a bad RULE (meaning, every situation needs to be treated individually). If you are putting your non-illustrated novel online, 100%, fluid layout is going to be terrible.


... it's the same as all print publishers have ever done for their readers.

Except, of course, they never expected their readers to have to scroll horizontally and vertically and turn pages.... ;-)

Truth be told, the same type of decisions are not always easy to make in print either. How much padding above/below a heading, what sort of running titles, etc etc etc. The big advantage and pleasure of working in print is that you can come up with a layout and be sure that everyone sees exactly that layout. You make decisions knowing what line length and page width every user will see. You can still create unreadable books, but it's generally a lot less frustrating (my books, by the way, are text only, but there are still a surprising number of issues to address when making camera-ready copy). The big bummer is that typos are forever!

Tom

isitreal

6:49 pm on May 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



So if I size a DIV with it, and the div is not floated, it's okay, or will I even have problems if the DIV is merely within a floated element or contains floated elements?

I'll describe the scenario where I found this to be a major problem.

<div width 90%>
<div to separate text block subdivisions, unsized, expands to fit containner>
<p using svendtofte method></p>
<dl floated, right, image and subtext>dl stuff</dl>
</div>
</div>

It was a little more complex than that, there is also a floated right column, but with container div having a margin equal to width of that column, but I tried putting max width on both the subdivision div and the p, IE could not handle it, the image dl would just vanish, there's something that happens in IE when float meets resize in the same container, I'm not sure what, but float is I believe incredibly difficult to program in, at least with the current IE 4-6 core that I believe MS is stuck with until IE 7.

the exact thing is a heavily modified but still similar to default looking wordpress page, to help you picture it.

But a technique that isn't stable like this isn't one I'm going to use, you never know what little thing you do will trigger it.

But check for yourself, this stuff can only be determined empirically, I just mentioned the float problem due to its extreme failure, if you can pinpoint the exact point that makes IE fail, that would be interesting, but I'm pretty sure that the float location is determined before the javascript runs, then when the javascript runs, it destroys the float.

If you are putting your non-illustrated novel online, 100%, fluid layout is going to be terrible.

Not just novel, any writing at all, the svendtofte example of

That policy has given us pages like usability guru Jakob Nielsen's rather unreadable site

is typical, the larger monitors get, the more extreme this problem is getting. I think this is simply due to the web being in its infant stages, only a few years ago did > 800 px widths become normal, before that most text did in fact fit quite nicely into 640 or 800 including leftnav, so this wasn't a particularly pressing issue, but now it is becoming one.

re: real print: it's still in my opinion far superior to web based print, except for the searchability question, I can absorb probably 10 times more information per hour by reading an o'reilly book than from searching php manuals or whatever, because there are editors, seasoned published authors, publishers, etc, professional levels that is, I forget this sometimes as I wade through the stuff on the web to learn stuff, then pick up a real book, the difference is stunning usually. Except for solving bugs and errors, then the web excells.

The layout decisions you mentioned are one large part of that, as is the impossible to get around fact that print is around 300-600 dots per inch, screen 72, which means a printed page is just easier to read because the text is much higher resolution.

Example, in 8 or 9 pages an o'reilly book [web database applications] gave me a radically better explanation of regular expressions than all of the online stuff I found referenced as authoritative combined, including all the links given by jdMorgan in the Apache forum re mod rewrite.

<added>As to the success of the DMCA [copyright.gov] in stifling high end content on the web... too sadly successful to contemplate, talk about a dead dream... along with the commercial difficulties of getting money from online writing... see the rapid switch to pay to view for online newspapers this and last year, for instance.

ergophobe

8:37 pm on May 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




get around fact that print is around 300-600 dots per inch, screen 72,

Not to mention excellent control over dynamic range (light/dark contrast). It's still dependent on ambient light, but nothing like dealing with different computer setups.

digitalv

8:49 pm on May 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since I'm still using tables, (haven't upgraded to css yet) I like 85 - 90%, which seems to look acceptable on all monitor widths, and doesn't look really lame on huge ones like the fixed width pages do.

I wouldn't consider CSS an "upgrade" - Tables still rule the web, and in many ways are much better than CSS. Just because some W3C-supporting geeks on this board scream CSS is "better" doesn't mean it is :)

That aside, ergophobe's post hit the nail on the head. On my laptop, my resolution is 1024x768 so most web pages look great regardless of whether they are 100% or fixed-width text alignment. At my office machine however, my desktop resolution is twice that, 2048x1024. Pages that use 100% alignment tend to look HORRIBLE if I have my browser open full screen. When an entire paragraph is one or two lines on the screen it just looks bad and I get tired of reading it.

Most of you who are designing based on 100% are doing so out of consideration for resolutions lower than yours but didn't give any thought to resolutions GREATER than yours. 100% looks bad on more web pages than it looks good on for high-resolution systems. And sure, people who run at 2048 may be in the minority but wasn't the question about supporting everyone? :)

Fixed width is the way to go. Even though 800x600 is a minority (remember, anything less than 50% is a minority and 800x600 falls into this category) it's still a COMMON enough minority to base your designs on. A width of 780 (778 if you use 1-pixel borders on your tables) would look nice for everyone except 640x480 users. You can't please everyone, but I'd rather alienate the lowest minority than everyone higher than 1280x1024.

Maybe some of you CSS-heads know if there is (or ever will be) an "up to" option in CSS... where you can say the with should be 100% up to "X" pixels or something. If that feature exists, someone should give the poster code on how to use it. If not, it should be invented :)

isitreal

9:12 pm on May 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The big advantage and pleasure of working in print is that you can come up with a layout and be sure that everyone sees exactly that layout

Not to mention that you have made something that actually exists, as an autonomous object, and doesn't depend on you paying your hoster or the hoster getting unplugged or a user owning a pc connected by wire to other pcs...

if there is (or ever will be) an "up to" option in CSS... where you can say the with should be 100% up to "X" pixels or something

that's what ergophobe and I are talking about, it's called:
min-width: 30em;
max-width: 38em; [or any other unit of measure, % etc]

IE doesn't support it, the fix we mentioned allows a virtual support of that through a proprietary IE CSS method, works ok, except in the instances I noted.

This type of thing is why people stop using IE, Opera and Mozilla support max-width, for example this thread motivated me to setup a user stylesheet with max-width for p, li, h1-6, blockquote that runs over all other stylesheets, so now for example I'm reading WebmasterWorld posts at 38 ems wide even though the page is at full screen, 90% width or whatever it's set to, 38 em is still a bit wider than standard print widths, maybe 36 em is closer.