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).
My only concern about hacks is that they become obsolete then I'll have to figure out why my pages don't work.
There ie virtually no need to hack for any other browser apart from ie.
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.
Originally Posted by scuba addict
a min and max width expression.
<!--[if gte IE 5]>
(d = document.compatMode == "CSS1Compat" ? document.documentElement : document.body) &&
(d.clientWidth > 1024 ? "1024px" : d.clientWidth < 770 ? "770px" : "auto"));
You lost me there lol. I don't see what max-width has to do with centering things.
Originally Posted by jacobpressures
You probably need to post a code example of what you have got so that we can give specific answers