Forum Moderators: not2easy

Message Too Old, No Replies

A fixed width site or percentages?

         

solodex

5:23 pm on Aug 29, 2007 (gmt 0)

10+ Year Member



I have seen several threads on here on this subject, but they date back a couple of years. My question is which is a better standard. I like percentages because they prevent too much whitespace on the side from showing. However, I like fixed width because I can precisely control the size of everything on the screen and make it blend together nicely.

I have several questions: Is the preferred standard full width, percentages, or fixed width? If you use a fixed width, are you still fixing it at 760px or so for the 800x600 displays of have you gone higher now?

mattbyrnes

5:53 pm on Aug 29, 2007 (gmt 0)

10+ Year Member



I try to do percentages whenever I can, but sometimes getting the layout just right is too difficult, so I do fixed if I must.

I've given up on 800x600 and target 1024x768.

According to w3schools, only 14% are still at 800x600.

It would be nice to accomodate them, but I find it is just too limiting.

[w3schools.com...]

rocknbil

7:12 pm on Aug 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



but they date back a couple of years.

Welcome aboard solodex, these come up like . . . every couple months, but mostly in the form of "screen resolution" posts - search for those and you'll find lots of discussions.

The problem with fixed width is you almost always have to fix it in pixels to make it work, and various resolutions will render differently. If you fix it at 1024px, along comes Mr./Mrs/Mz. Huge Monitor set at maximum resolution and squashes you up. While you can fix a width in percentages, if you're going to do that, you may as well go with fluid width IMO.

That being said, I like to use a fluid width with the max-width property set to 1024px. Yeah, this creates the same problem as mentioned above, but next year we can bump up max-width with a single line in the CSS, and it does accommodate smaller resolutions. You absolutely want to set a max-width. If the monitor is **really** huge, reading impossibly long lines of text is as annoying as any of the other top ten designer mistakes.

I always immediately discount statistical percentages that allow a designer to say "well we don't care about the lower percentile." It doesn't matter if it's 1% - if **I** were in that 1%, I wouldn't be too happy. A customer is a customer, a sale is a sale.

bedlam

7:18 pm on Aug 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



According to w3schools, only 14% are still at 800x600.

It would be nice to accomodate them, but I find it is just too limiting.

Too limiting for whom? Remember when making decisions like this that:

  • w3schools' audience is composed of developers and would-be developers. It is very likely that this group of people is using higher-resolution monitors than the general population, and (in general) unlikely that the target audience of any given site is identical with that of w3schools.com.
  • 14% can be a hugely important segment of your audience, depending on who they are. Imagine how a political party would react if they discovered that one person in every seven could not view their website...

In any case, fluid layouts are a good way to go, but aren't suitable in absolutely every instance. Sometimes a fixed-width design just does the job better.

solodex

8:00 pm on Aug 29, 2007 (gmt 0)

10+ Year Member



That being said, I like to use a fluid width with the max-width property set to 1024px. Yeah, this creates the same problem as mentioned above, but next year we can bump up max-width with a single line in the CSS, and it does accommodate smaller resolutions. You absolutely want to set a max-width. If the monitor is **really** huge, reading impossibly long lines of text is as annoying as any of the other top ten designer mistakes.

I am not familiar with the max-width property. Is it read by the browser and the width of that particular div container is set to max(max-width, users display size)? If that is the case and you use em size settings for fonts, will they automatically scale based upon the width selected? If not, how can I do this.

Thank you for all of the responses so far. It really has been enlightening.

ceestand

8:13 pm on Aug 29, 2007 (gmt 0)

10+ Year Member



(reiterating a post to a thread not too long ago): I like a fixed width, although I certainly made note of the max-width idea (are there cross-browser issues with that?).

I find that with the higher width resolutions comes more browser size adjustment. Someone running 800x600 is much more likely to be viewing in full screen mode than someone who is running 1440x900.

All of the big box stores are pushing widescreen monitors these days. A 1440px wide site is painful, I would hazzard a guess that many of those users will scale their browsers to ~800px.

Wlauzon

9:46 pm on Aug 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Our current results from a Yahoo store below as per Analytics. It looks like 800x600 has dropped even more (this is about the last 10 days). I have not looked at that for a while, and was a bit surprised how much 1280 has come up since June - from around 12%.

At this rate, it looks like by around January that 800 will be about ready to join the land of the Dodo's.

1. 1024x768 23,780 44.63%
2. 1280x1024 8,590 16.12%
3. 1280x800 5,391 10.12%
4. 800x600 4,003 7.51%
5. 1440x900 2,446 4.59%
6. 1680x1050 1,880 3.53%
7. 1152x864 1,784 3.35%
8. 1280x768 947 1.78%
9. 1600x1200 924 1.73%
10. 1920x1200 827 1.55%

And from another non-ecommerce site of ours:

1. 1024x768 13,414 43.99%
2. 1280x1024 5,322 17.45%
3. 1280x800 2,997 9.83%
4. 800x600 2,179 7.15%
5. 1440x900 1,303 4.27%
6. 1152x864 1,216 3.99%
7. 1680x1050 1,048 3.44%
8. 1600x1200 559 1.83%
9. 1280x768 494 1.62%
10. 1920x1200 420 1.38%

[edited by: Wlauzon at 9:48 pm (utc) on Aug. 29, 2007]

bedlam

11:54 pm on Aug 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



At this rate, it looks like by around January that 800 will be about ready to join the land of the Dodo's.

Maybe when it does, people will finally begin to realize that screen resolution is not the appropriate metric for deciding this question. When larger screens become ubiquitous, it becomes necessary to know the window size instead.

Since people do resize windows--even on Windows--it's necessary to ensure that layouts work at sizes significantly smaller than that of the monitor. To provide a statistically insignificant bit of anecdotal evidence, I browse with the window about 2/3 the width of my 1440px screen--which means my effective screen size is ~960px-18px or so for scrollbars, or in the neighbourhood of 940 pixels.

Either way, the route to take is one of a) a fluid layouts or b) a conservatively-sized fixed layout--though in either case (CSS being what it is), you could provide tools to allow visitors to resize an intelligently-built layout.

--b

rocknbil

7:51 am on Aug 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am not familiar with the max-width property.

min-width and max-width set the largest or smallest width any object can be on resize, and it can be set in px, %, or em (I think, I use px for this . . . )

... If that is the case and you use em size settings for fonts, will they automatically scale based upon the width selected?

No, the size of fonts are not affected by an object's width, and there is no real way to "control" the text preferences of the browser. The settings you create in em's and percentage are based on the current default of the browser - so a user can set their text size to medium, large, or largest and if you specify 90%, the actual rendered text is 90% of "whatever that is." :-)

Using fixed-size fonts works in IE, but FF allows fixed-size fonts to be resized.

(are there cross-browser issues with that?) [min/max-width]

Only with Everyone's Favorite Browser, Internet Destroyer 6. :-) Doesn't support it and you have to perform a hack of one kind or another to get it to play ball. I have had no issues with any standards-compliant browsers, but it's really one of those "less critical" rules.

There was a discussion recently that expressed some issues with min and max-height, can't recall specifics (search it out.)

MWpro

6:05 am on Sep 4, 2007 (gmt 0)

10+ Year Member



Keep your audience in mind when making these decisions. If you sell products to college students, almost every one of them will have new laptops with resolutions greater than 800x600. If you are designing a site for an older audience, keep in mind that they very well might have their resolutions set at 800x600 so they can read the text more easily.

When you are in doubt, and do not need absolute 100% control over every little thing on the layout, go with a mix of percentages and fixed pixels, a fixed menu for example with the content part set as a percentage. I also like the max-width idea and will be implementing it in any future percentage designs.