Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Posts
    218
    Thanks
    0
    Thanked 0 Times in 0 Posts

    page backround in css??

    hey,

    i have a .css file that specifies the style of my page etc.. (duh )

    what i dont know how to do is what to put to specify the page backround color

    can anyone tell me??

    cheers

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    body {
    background:#ffffff;
    }

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Posts
    218
    Thanks
    0
    Thanked 0 Times in 0 Posts
    tried that, doesnt work

  • #4
    Regular Coder
    Join Date
    Aug 2002
    Location
    Spain
    Posts
    420
    Thanks
    0
    Thanked 0 Times in 0 Posts
    body {
    background-color: #993300;
    }
    Don't resist to assimilation. Billions of Borgs can't be wrong!

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    selectors are case sensitive. HTML tags are defined in CAPS. So it woudl be:

    BODY
    { background: #abcdef;
    }
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #6
    Regular Coder
    Join Date
    Nov 2002
    Location
    Bristol, UK
    Posts
    932
    Thanks
    0
    Thanked 0 Times in 0 Posts
    um, no vladdy, not true...

    you can redefine html element styles without using caps. Personally I stay away from caps because they are ugly

    I think you will find Borgtex has given the correct syntax

    ::] krycek [::
    ithium | SOAPI | SDP | PTPScript manual
    "ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    HTML tags do not have a defined case but xHTML tags are always lower case. Since xHTML is the future, you would do well to start coding all your tags and their properties using lower case. You really need to go to the W3C site and learn about the changes that affect your coding and your coding habits.

    http://www.w3.org/TR/xhtml1/#diffs


  •  

    Posting Permissions

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