Click to See Complete Forum and Search --> : What's a Parse ERROR?


• MaNiC MoE •
07-03-2007, 01:14 PM
I've been validating my first CSS file and I don't understand what it means...

Kevey
07-03-2007, 01:55 PM
It means that it encountered something that it couldn't identify, most likely due to its invalid syntax. Some of your code is invalid. If you post a link to your results we can hash it out.

• MaNiC MoE •
07-03-2007, 02:21 PM
Sure... Here's the code :


/* Overall Formatting */
body [lang="en"]
{background-color:#000000 ; background-image:url('Background.jpg') ; background-repeat:repeat ; background-attachment:fixed ;
cursor:Help ;

/* Scrollbar Formatting */
scrollbar-arrow-color : #FFFFFF ;
scrollbar-3dlight-color : #0000FF ;
scrollbar-highlight-color : #00FF00 ;
scrollbar-face-color : #FF0000 ;
scrollbar-shadow-color : #FFFF00 ;
scrollbar-darkshadow-color : #C0C0C0 ;
scrollbar-track-color : #C0C0C0 ;

/* Text Formatting */
color:#FFFF00 ; direction:ltr ; margin-left:5% ; margin-right:2% ; font-size:18px ; font-family:"Comic Sans MS" ;
}

/* Heading */
h1,h3,h4 {color:#FFFFFF}
h1,h2,h3,h5 {text-align:center ; font-weight:bold}
h5,h6 {color:#00FF00}
h1 {font-family:"Times New Romans" ; margin:3px ; line-height:2px}
h2 {font-family:Arial ; letter-spacing:8px ; font-variant:small-caps}
h3 {text-decoration:underline}

/* Paragraph */
p.normal {color:#FFFF00}
p.notice {color:#FFFFFF ; background-color:#FF0000 ; font-size:20px ; font-weight:bold}
p.letter {text-indent:8px ; margin-right:1px}

/* Text Misc Formatting */
em {font-weight:900}
tt {color:#C0C0C0 ; font-size:18pxa}
b,strong {font-weight:bold}
q {font-style:italic}
blockquote {margin-left:2cm ; color:#00FF00}
.highlighted {background-color:#FFFF00}
.wrong {text-decoration:line-through}
span {float:left ; font-family:algerian,courier ; line-height:3px ; width:0.7em}

/* Hyperlinks */
a.f:link {color:#FF0000}
a.f:visited {color:#C0C0C0}
a.f:hover {color:#EEE0EE}
a.f:active {color:#FF0000}

/* Effects */
a {text-align:center ; padding:8px ; text-decoration:none}
a:link {background-color:#F9F9F9 ; border:3px outset #CFCFCF ; outline:8px solid #FF0000}
a:visited {background-color:#FFFFFF ; border:3px outset #00FF00 ; outline:8px solid #bd1103}
a:hover {background-color:#e6ff05 ; border:5px inset #FF0000 ; outline:10px double #bd11ff ; filter:glow(color:#FFFFFF) ; font-weight:900}
a:active {background-color:#F9F9F9 ; border:3px outset #CFCFCF ; outline:7px solid #FF0000}

/* Horizontal Bars */
hr.small {color:#EEE0EE ; width:45% ; height:1px}
hr.medium {color:#C0C0C0 ; width:99% ; height:3px}
hr.big {color:#FF0000 ; width:100% ; height:8px}

/* Images */
img.banner {width:100% ; border:0}

/* Lists */
ul.1 {list-style-type:decimal-leading}
ul.2 {list-style-image:url('Bullet.gif')}

/* Tables */
table {border-collapse:collapse}


And here are the errors found :


7 body [lang="en"] Property scrollbar-arrow-color doesn't exist : #ffffff
8 body [lang="en"] Property scrollbar-3dlight-color doesn't exist : #0000ff
9 body [lang="en"] Property scrollbar-highlight-color doesn't exist : #00ff00
10 body [lang="en"] Property scrollbar-face-color doesn't exist : #ff0000
11 body [lang="en"] Property scrollbar-shadow-color doesn't exist : #ffff00
12 body [lang="en"] Property scrollbar-darkshadow-color doesn't exist : #c0c0c0
13 body [lang="en"] Property scrollbar-track-color doesn't exist : #c0c0c0
52 a:hover attempt to find a semi-colon before the property name. add it
0 a:hover Parse Error - null
52 a:hover Parse Error - #FFFFFF) ;
53 Parse Error - :900} a:active
64 ul Parse Error - ul.1 {list-style-type:decimal-leading}
67 ul Parse Error - ul.2 {list-style-image:url('Bullet.gif')}

Kevey
07-03-2007, 02:58 PM
The validator is choking on the filter:glow line. I do not think that filters are a part of the css2 specification and therefore will not validate. If you remove that line all of your parse errors disappear.

gizmo
07-03-2007, 03:03 PM
Applying styles to the scroll bar is an IE thing, it is not valid W3C CSS. For the others have a read here
http://www.w3.org/TR/REC-CSS2/
Are you creating the styles yourself or using a program to do it automatically ?

• MaNiC MoE •
07-03-2007, 04:02 PM
Well, I've been learning it and have finished the basics.

The filter, scroll bar and cursor things, I learnt them from websites and the program I'm using!

ryanbutler
07-03-2007, 04:10 PM
Technically you can get around the IE scrollbar stuff and make your page validate. Wrap the scrollbar stuff inside a conditional comment for IE, all other browsers ignore it.


<!--[if IE]>
<style>
scrollbar stuff..
</style>
<![endif]-->

• MaNiC MoE •
07-04-2007, 04:18 AM
Yaaaaaay! It worked :)

But it gave me 1 ERROR! (:rolleyes: )


73 Lexical error at line 73, column 3. Encountered: "[" (91), after : "<!"

What's does that mean?

WebJoel
07-04-2007, 07:02 AM
But it gave me 1 ERROR! (:rolleyes: )
What's does that mean? Probably "[" doesn't belong where it is at (or at all). Helpful to see the line that is throwing this error. Most likely, it is just a typo.