|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Style code trouble!
Could you clarify which block of code is working and which isn't?
Try comparing the selectors in each blog. For example, the first one has styles for Code:
body.c8 Code:
<body class="c8"> to the body tag regardless of its classes. If you compare the selectors as well as the classes used in the HTML itself, that might explain the results you're getting. |
|
#2
|
|||
|
|||
|
Re: Style code trouble!
Did you miss the semi-colon? eg
body.c8 {background-color:#37007b;} |
|
#3
|
||||
|
||||
|
Re: Style code trouble!
Normally, you don't need the semicolon for the last one. You only need it if you are separating multiple styles for the same thing.
|
|
#4
|
|||
|
|||
|
Re: Style code trouble!
i would say add semi colons to everything and remove the /*<![CDATA[*/ & /*]]>*/ (What is that stuff even for?)
|
|
#5
|
||||
|
||||
|
Re: Style code trouble!
Quote:
And Cecil is correct; the last semicolon in each block is optional. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|