got this error - Parse error - Unrecognized : }

liunx

Guest
hello,

when i validated my stylesheet i got this error -

Line: 0

Parse error - Unrecognized : }

i was hoping someone could tell me what it means!!!It means you have a syntax error somewhere that confused the parser. It gave up trying to figure out was wrong and told you that it encountered a "}" character when it wasn't ready to see one yet, but has no idea where the exact error is. (Or something like that.)

Most likely you are missing a "{", "}", or ";" somewhere, or have an extra one. If you care to post your CSS file here, I'm sure somebody will be able to locate the error.Yes, I think Nog Dog is right. In the future, I'd advise to indent your stylesheets- it makes errors so much easier to find. But, first, we need to see that stylesheet.this is my stylesheet -

.smalltext {
font-family: "Arial Narrow", Arial, Verdana, sans-serif;
font-size: 10px;
color: #FFFFFF;
text-align: right;
background-color: #3366CC;
}
.largertext {
font-family: "Arial Narrow", Arial, Verdana, sans-serif;
font-size: 12px;
color: #000000;
font-weight: normal;
}
a:link { color: #000000; text-decoration: none }
a:active { color: #000000; text-decoration: none }
a:visited { color: #000000; text-decoration: none }
a:hover { color: #000000; text-decoration: underline }
}That final bracket- get rid of it. That should solve your problem.thanks that solved the problem!!!Originally posted by claire_m
thanks that solved the problem!!! No problem. :)
 
Back
Top