![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
BODY { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: Arial, Geneva; background-image: url(images/back.jpg); } BODY.myclass { FONT-WEIGHT: bold; FONT-SIZE: 15px; FONT-FAMILY: Arial, Geneva; background-color: #777777; } .... the background-color in the second declaration is NOT taken but the "normal" background image back.jpg is used for the background. How do I get #777777 as background-color ? |
#3
| |||
| |||
|
|
BODY class=myclass BODY { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: Arial, Geneva; background-image: url(images/back.jpg); } BODY.myclass { FONT-WEIGHT: bold; FONT-SIZE: 15px; FONT-FAMILY: Arial, Geneva; background-color: #777777; } the background-color in the second declaration is NOT taken but the "normal" background image back.jpg is used for the background. How do I get #777777 as background-color ? |
#4
| |||
| |||
|
|
When I declare on HTML page LINK href="mycss.css" type="text/css" rel=stylesheet / ... BODY class=myclass in mycss.css BODY { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: Arial, Geneva; background-image: url(images/back.jpg); } BODY.myclass { FONT-WEIGHT: bold; FONT-SIZE: 15px; FONT-FAMILY: Arial, Geneva; background-color: #777777; } ... the background-color in the second declaration is NOT taken but the "normal" background image back.jpg is used for the background. How do I get #777777 as background-color ? |
#5
| |||
| |||
|
|
When I declare on HTML page LINK href="mycss.css" type="text/css" rel=stylesheet / .... BODY class=myclass in mycss.css BODY { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: Arial, Geneva; background-image: url(images/back.jpg); } BODY.myclass { FONT-WEIGHT: bold; FONT-SIZE: 15px; FONT-FAMILY: Arial, Geneva; background-color: #777777; } .... the background-color in the second declaration is NOT taken but the "normal" background image back.jpg is used for the background. |
#6
| |||
| |||
|
|
Can't have it both ways, that is, you can't define two instances of BODY. Only one BODY to a page. |
#7
| |||
| |||
|
|
When I declare on HTML page LINK href="mycss.css" type="text/css" rel=stylesheet / ... BODY class=myclass in mycss.css BODY { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: Arial, Geneva; background-image: url(images/back.jpg); } BODY.myclass { FONT-WEIGHT: bold; FONT-SIZE: 15px; FONT-FAMILY: Arial, Geneva; background-color: #777777; } ... the background-color in the second declaration is NOT taken but the "normal" background image back.jpg is used for the background. How do I get #777777 as background-color ? Kevin |
#8
| |||
| |||
|
|
the background-color in the second declaration is NOT taken but the "normal" background image back.jpg is used for the background. |
#9
| |||
| |||
|
|
When I declare on HTML page LINK href="mycss.css" type="text/css" rel=stylesheet / ... BODY class=myclass in mycss.css BODY { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: Arial, Geneva; background-image: url(images/back.jpg); } BODY.myclass { FONT-WEIGHT: bold; FONT-SIZE: 15px; FONT-FAMILY: Arial, Geneva; background-color: #777777; } ... the background-color in the second declaration is NOT taken but the "normal" background image back.jpg is used for the background. How do I get #777777 as background-color ? Kevin |
#10
| |||
| |||
|
|
When I declare on HTML page LINK href="mycss.css" type="text/css" rel=stylesheet / ... BODY class=myclass in mycss.css BODY { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: Arial, Geneva; background-image: url(images/back.jpg); } BODY.myclass { FONT-WEIGHT: bold; FONT-SIZE: 15px; FONT-FAMILY: Arial, Geneva; background-color: #777777; } ... the background-color in the second declaration is NOT taken but the "normal" background image back.jpg is used for the background. How do I get #777777 as background-color ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |