|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Confusing [simple] CSS parse error
Hi all,
Has anyone received a Line: 0 Parse error - Unrecognized : } with the rest of the CSS document validated under W3C validator? I can't work out why it's not happy. The beginning of my CSS is: /* This is the only CSS for the Waste RE3 website */ a:link { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; color: #008000; text-decoration: none} a:visited { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; color: #008000; text-decoration: none} a:hover { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; color: #FF9933; text-decoration: underline} |
|
#2
|
||||
|
||||
|
try this:
Code:
a:link {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px;
font-style: normal;
color: #008000; text-decoration: none;
}
a:visited {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px;
font-style: normal; color: #008000;
text-decoration: none;
}
a:hover {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px;
font-style: normal;
color: #FF9933;
text-decoration: underline;
}
Also using Verdana as a base font might not work too well, try viewing the site on more than 1 browser, and OS, also try changing the font family to see if it looks any better, there are tuts about font sizes etc that give examples of what the end user will see! Verdana is kinda hard to read when its at a small font size Cheers MostDef
__________________
All is not what it seems, and it seems that this is not all! |
|
#3
|
|||
|
|||
|
Thank you
Worked like a charm...THANK YOU!
What was the problem by the way??? the way the css was structured?? Ben |
|
#4
|
||||
|
||||
|
No probs
your code: Code:
a:link { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px;
font-style: normal; color: #008000; text-decoration: none}
after - text-decoration: none } you need a ; EG: text-decoration: none; } if u see what i mean MostDef |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Confusing [simple] CSS parse error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|