CSS is not working in firefox for body tag

Discussion in 'HTML & Website Design' started by Subikar, Apr 12, 2007.

  1. #1
    Hi, I want the body of 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.
     
    Subikar, Apr 12, 2007 IP
  2. chilli_source

    chilli_source Active Member

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #2
    perhaps try wrapping a div around all the content?

    ie

    <div align="center" class="wrapper">
    .. page content ..
    </div>

    and in your css:

    .wrapper { width: 90%; }
     
    chilli_source, Apr 12, 2007 IP
  3. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Thanks a lot it's working.......... :)
     
    Subikar, Apr 12, 2007 IP
  4. chilli_source

    chilli_source Active Member

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #4
    glad to help :)
     
    chilli_source, Apr 12, 2007 IP