Forum Moderators: not2easy

Message Too Old, No Replies

CSS is not working in firefox for body tag

css, php, body, html, mozilla, I.E

         

subikar

5:32 am on Apr 13, 2007 (gmt 0)

10+ Year Member



Hi, I want the body if my page to have a width of 90% and aligned at center. Its working fine in I.E. but not in Mozzila. This the css:

body {
width:90%;
text-align:center;
margin:0 auto;
}

....pls help me.

DanA

7:57 am on Apr 13, 2007 (gmt 0)

10+ Year Member



There must be a syntax error in your page as the code above in a valid html page should work.

Xapti

5:16 am on Apr 14, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check your doctype declaration, or any other bugs you may have in the CSS (or HTML).
I don't know if this is valid (I've seen it used in IE hacks either way, and it should work with few/none adverse effects, just maybe won't validate), but you can also go html{width:100%}, just so you have infro from a parent.