|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
defining body css in linked css
hello
i have a stylesheet thats linked to my page and i know it works because all the link colours work correctly however the body tag... body { color: red; } seems to do nothing?? when i put it in the page itself it makes the text of the page go red? i thought this was supposed to be the background colour?? thanks in advance gar |
|
#2
|
|||
|
|||
|
Re: defining body css in linked css
Quote:
Try body { bgcolor: red; } |
|
#3
|
|||
|
|||
|
i have nothing, its not the attribute ie color, its the body{} tag that seems to not work, nothing in it seems to work, yet i have looked at other sites and they all seem to use it???
a+ gar |
|
#4
|
||||
|
||||
|
In CSS 'color' refers to the text color to set the background color using CSS you want to use:
Code:
BODY {background-color: red;}
If that doesn't work you may have a syntax error somewhere else in the CSS file. Hope this helps, Mac
__________________
easier is relative |
|
#5
|
|||
|
|||
|
yep found my problem, there was a comment on a preceeding line which was interfering with the body{} tag.
thanks gar |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > defining body css in linked css |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|