![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm learning CSS |
|
p { font-weight: bold; color: blue; } body { font-family: Verdana; { When I do the above, the paragraph turns out blue. On the other hand, switching p and body, p { font-weight: bold; color: blue; } body { font-family: Verdana; { produces black text. |
|
What am I not understanding? |
#3
| |||
| |||
|
|
Gianni wrote: I'm learning CSS Apparently from a poor source, as you are setting paragraph text to bold, using Verdana, and setting color (to blue at that!) without setting background. It's just an example you're giving, but a very bad example. p { font-weight: bold; color: blue; } body { font-family: Verdana; { When I do the above, the paragraph turns out blue. On the other hand, switching p and body, p { font-weight: bold; color: blue; } body { font-family: Verdana; { produces black text. Really? I don't see any difference. The stylesheets are identical. What am I not understanding? The necessity of posting a URL, to begin with. I apologize for the question. |
![]() |
| Thread Tools | |
| Display Modes | |
| |