Hi! i made a web page, but i can't center it, i already used the "margin:0px auto" but it didn't work, but in FF it did.. can anyone help me with this? thanks ronie
... and there's the tell. If margin:auto is not working in JUST Internet Exploder, it means you are in quirks mode, most likely from having an invalid/malformed/nonexistant doctype, or including an XML prolog before the doctype. It also likely means much of your CSS is likely hacking around quirks mode behavior instead of being standards compliant. If you post a link or your code, we can likely ACTUALLY help you. Asking for help without showing us your code is pointless.
Smeey your code might do the trick but it's depreceated, uses an extra DIV for no reason, teaches newbies the wrong thing and was probably the correct answer about 10 years ago.
Though adding text-align:center; to the body might make quirks mode IE work - I usually include it so IE5 (which has no standards mode) will attempt to work. But yeah, align==/FAIL/. Total and miserable /FAIL/. "You got your presentation in my markup" - unfortunately this is NOT PB + Chocolate.
You didn't solve the problem, you just covered it up by writing bad code to accommodate a buggy browser. Did you not read deathshadow's posts? That is the wrong way to do things. The only thing you need to do is trigger standards mode. If you're not willing to code to standards, you will continue to have all sorts of x-browser compatibility issues. gary
But why, that's all the rage today. Post asking for help, then ignore everyone that answers and just do whatever, even if its the wrong way of doing things.
Yeah it's often the case with the designer who is happy with his site that looks great on his resolution, with his browser. Until the day he logs onto his site from a different machine or different browser they won't care but when this day comes they come running back.
Which is why I do not as a rule advocate 'silver bullet' fixes for bugs when there are larger underlying issues. Though in this case, we haven't even seen his code or the page in question, so none of us can REALLY say if it's inappropriate or not.