Forum Moderators: open
<div style="border: 1px #fff solid; background: #000; margin: auto; padding: 10px; width: 750px;"> And, as I understand, the 'margin: auto;' attribute is what centrally aligns the whole div. (and it works fine in IE, Firefox, and Opera)
However, I have forums (powered by XMB) installed on my site as well, in an appropriate directory. I also have the div tag placed there in order to keep the site looking relatively the same:
<div style="border: 1px #fff solid; background: #000; margin: auto; padding: 10px; width: 750px;"> BUT - the forums section aligns centrally in Firefox and Opera, but NOT in IE. I can't for the life of me figure out why, and I've tried a plethora of ways to fix it.
Anyone have any insight?
IE does not support the margin: 0 auto; method of centering it still requires "text-align: center;" but that needs to be on the parent element so
body {text-align: center;}div {text-align: left; margin: 0 auto; width: 750px;}
should do it.. or whatever your parent element is for that div, note setting the actual text alignment back the default may be required in your div
Suzy