5 replies [Last post]
keyplyr
Offline
newbie
Southern California
Last seen: 16 years 8 weeks ago
Southern California
Joined: 2003-07-26
Posts: 3
Points: 0

Wondering what the support is for "body { max-width }" ?
My current DTD is 4.01 transitional, standards mode.

I'm using % tables for layout, but they look too stretched-out any wider than approx 900 pxl.

This is how I have it:

body {
background-color:#fff;
color:#000;
top:0;
left:0;
margin:0;
padding:0;
max-width:900px;
}

Thanks

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 2 days 2 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Support for max-width ?

Hi keyplyr,
IE provides no or very poor support for max-width.
Netscape 6 and above should support it.

You could put up a link to a sample and a few of us could test it out in different browser platform combinations..

keyplyr
Offline
newbie
Southern California
Last seen: 16 years 8 weeks ago
Southern California
Joined: 2003-07-26
Posts: 3
Points: 0

Support for max-width ?

Thanks Tony,

The link is already posted Smile

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 2 days 2 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Support for max-width ?

Hi keyplyr,
Works for me on Win 2K,

    Opera 6 and 7 Netscape 7
    Mozilla Firebird
Fails as expected in IE 6.

[/]
casey
casey's picture
Offline
Regular
Wisconsin, USA
Last seen: 5 years 20 weeks ago
Wisconsin, USA
Timezone: GMT-5
Joined: 2003-08-01
Posts: 17
Points: 0

Support for max-width ?

Your page works very well in IE 5.1.6 for Mac OS 9.

keyplyr
Offline
newbie
Southern California
Last seen: 16 years 8 weeks ago
Southern California
Joined: 2003-07-26
Posts: 3
Points: 0

Support for max-width ?

Thanks Tony, Casey.

I've read that most users that run very large display resolutions usually do not keep their window maxed. This is a good thing IMO, since although my design is fluid, it is basically built for 800x600.

Wondering whether I should leave my pages aligned to the left, or center them. Which would look better? And which would work better if the user adjusts his window size back and forth? Thanks.