Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Validation Issue

Status
Not open for further replies.

iisman

Technical User
Mar 6, 2005
85
CA
Getting a parse error with this line of css in the w3c validator:

Code:
.mainpagebodyhelp {margin-bottom: 3px; margin-left: 3px; margin-right: 2px; margin-top: 3px; background-color: #f5f5dc;}

Any idea on what could be causing?

Thanks!
 
Got er resolved. a stray keystroke at the top of the doc was causing.

Thanks for those who looked.
 
Not really required... but you could represent the same style using:
Code:
.mainpagebodyhelp {margin: 3px 2px 3px 3px; background-color: #f5f5dc;}
I recently started using that syntax again once I (finally) understood the order of the four numbers... the analogy I use now is that of a clock face...

Starting at 12 on the clock (representing top), then 3 (representing right), 6 (bottom), 9 (left). As you go clockwise around the clock face, you visit top, right, bottom, left. This is the same order as the numbers.

Anyway, glad you got your code sorted.
Jeff


[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top