CSS doesn't work in FF

Discussion in 'CSS' started by suze, Apr 4, 2007.

  1. #1
    The #allcontent background-color is always shown as the body-color when I open this in FF.

    body {
    background-color: #ffe4e1;
    font-family: Verdana, Geneva, Arial, sans-serif;
    font-size: small;
    margin: 0px;
    }

    #allcontent {
    width: 800px;
    background-color: #ffffff;
    margin-right: auto;
    margin-left: auto;
    }

    Any ideas what I am doing wrong

    Thanks
    Suze
     
    suze, Apr 4, 2007 IP
  2. thedark

    thedark Well-Known Member

    Messages:
    1,346
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    168
    Digital Goods:
    1
    #2
    paste the html code too
     
    thedark, Apr 4, 2007 IP
  3. petyard

    petyard Well-Known Member

    Messages:
    2,025
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    185
    #3
    yeah would be nice....or should we guess it?
     
    petyard, Apr 4, 2007 IP
  4. nichevalue

    nichevalue Peon

    Messages:
    479
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have had this happen when I add other "divs" that float within the "allcontent div'. The way I fixed it was to add a 'footer div' that spanned the width of the "allcontent div".

    #footer {
    width: 800px;
    background-color: #ffffff;
    margin:0;
    }

    and then just include the footer div within your allcontent div tags. Try this and let me know if it worked.
     
    nichevalue, Apr 4, 2007 IP
  5. suze

    suze Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks

    It is working very well.

    Susan
     
    suze, Apr 4, 2007 IP