![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I got this error while validating my page: document type does not allow element "UL" here; assuming missing "LI" start-tag. Here's the suspicious code. The problem seems to be that I can't nest list blocks within other list blocks. But if not, how can I create this "subnote" effect? |
|
ol li>....</li li>....</li ul li>....</li /ul li>....</li /ol |
#3
| |||
| |||
|
|
I got this error while validating my page: |
#4
| |||
| |||
|
|
Your code: Correct code: |
#5
| |||
| |||
|
|
John Salerno wrote: I got this error while validating my page: I wonder if someone could explain this to me also. It validates, but I don't understand the warnings: Warnings URI : http://python.johnjsalerno.com/xrc_tutorial.css * Line : 6 (Level : 1) This property applies to block-level elements. : h1 |
|
* Line : 12 (Level : 1) You have no color with your background-color : .codeblock |
#6
| |||
| |||
|
|
* Line : 12 (Level : 1) You have no color with your background-color : .codeblock This is because you have not set a colour for the text in .codeblock. This could potentially cause an inherited text colour to be the same as the set background-color. Not an error, but a warning to pay attention to styles that could cause problems in certain situations. |
#7
| |||
| |||
|
|
Els wrote: * Line : 12 (Level : 1) You have no color with your background-color : .codeblock This is because you have not set a colour for the text in .codeblock. This could potentially cause an inherited text colour to be the same as the set background-color. Not an error, but a warning to pay attention to styles that could cause problems in certain situations. Thanks once more! If I wanted to do this, would I just use the 'color' property to set text color? It seems too general of a name, but that's what's listed on the reference site I'm looking at. |
#8
| |||
| |||
|
|
URI : http://python.johnjsalerno.com/xrc_tutorial.css * Line : 6 (Level : 1) This property applies to block-level elements. : h1 |
#9
| |||
| |||
|
|
Scripsit John Salerno: URI : http://python.johnjsalerno.com/xrc_tutorial.css * Line : 6 (Level : 1) This property applies to block-level elements. : h1 How did you get that warning? Using the W3C "CSS Validator" on your CSS code, I get no such message, even when I have selected "All" in the "Warnings" menu. |
#10
| |||
| |||
|
|
John Salerno wrote: * body { o font : small/1.5em Verdana, Helvetica, Arial, sans-serif; } Please see: http://k75s.home.att.net/fontsize.html Thanks. |
![]() |
| Thread Tools | |
| Display Modes | |
| |