Results 1 to 3 of 3

Thread: css background color

  1. #1
    Join Date
    Jul 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default css background color

    I'm trying to add a black background #000000 to a xml xhtml 1.0 strict page but it won't work, only the parts with content is black while the rest is all white but when I removed the xml tag <?xml version="1.0" encoding="gb2312"?> it makes the entire page black

    body{
    color:#FFFFFF;
    background:#000000;
    }

    any suggestions? or is this just not possible?

  2. #2
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    A link to the site, or the exact code would be appreciated.

  3. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    html, body {
    height:100%;
    everything else you have in body tag
    } This might do it if not a link or all of your code

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •