My only concern about hacks is that they become obsolete then I'll have to figure out why my pages don't work.
Only use hacks that target dead browers and they will never become obsolete. Don't hack for modern browsers as most don't need them anyway. * html is 100% safe for ie6 and under because ie7 doesn't support it and doesn't need it. (Or Use conditional comments of course).
There ie virtually no need to hack for any other browser apart from ie.

Originally Posted by
scuba addict
Try this in your css:
max-width:955px; width:expression(document.body.clientWidth > 955? "955px": "auto" );
You first have to determine what mode the browers is working in otherwise this could crash it. If ie is in quirks mode it needs a different format to standard mode.
a min and max width expression.
Code:
<!--[if gte IE 5]>
<style type="text/css">
#wrapper {width:expression(
(d = document.compatMode == "CSS1Compat" ? document.documentElement : document.body) &&
(d.clientWidth > 1024 ? "1024px" : d.clientWidth < 770 ? "770px" : "auto"));
}
</style>
<![endif]-->

Originally Posted by
jacobpressures
This would be best if i could use max-width because i wouldn't have to worry about short paragraphs or lists appearing uncentered.
You lost me there lol. I don't see what max-width has to do with centering things.
You probably need to post a code example of what you have got so that we can give specific answers
Bookmarks