SpeedFreak
11-06-2002, 09:33 AM
hey,
i have a .css file that specifies the style of my page etc.. (duh :p)
what i dont know how to do is what to put to specify the page backround color
can anyone tell me??
cheers
MCookie
11-06-2002, 09:46 AM
body {
background:#ffffff;
}
Borgtex
11-06-2002, 11:56 AM
body {
background-color: #993300;
}
Vladdy
11-06-2002, 12:37 PM
selectors are case sensitive. HTML tags are defined in CAPS. So it woudl be:
BODY
{ background: #abcdef;
}
krycek
11-06-2002, 12:50 PM
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 [::
Roy Sinclair
11-06-2002, 02:33 PM
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