/    Sign up×
Community /Pin to ProfileBookmark

What’s a Parse ERROR?

I’ve been validating my first CSS file and I don’t understand what it means…

to post a comment
CSS

8 Comments(s)

Copy linkTweet thisAlerts:
@KeveyJul 03.2007 — 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.
Copy linkTweet thisAlerts:
@____MaNiC_MoE____authorJul 03.2007 — Sure... Here's the code :

[code=html]
/* 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}
[/code]


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')}
[/QUOTE]
Copy linkTweet thisAlerts:
@KeveyJul 03.2007 — 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.
Copy linkTweet thisAlerts:
@gizmoJul 03.2007 — 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 ?
Copy linkTweet thisAlerts:
@____MaNiC_MoE____authorJul 03.2007 — 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!
Copy linkTweet thisAlerts:
@ryanbutlerJul 03.2007 — 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.

[CODE]
<!--[if IE]>
<style>
scrollbar stuff..
</style>
<![endif]-->[/CODE]
Copy linkTweet thisAlerts:
@____MaNiC_MoE____authorJul 04.2007 — Yaaaaaay! It worked ?

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


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


What's does that mean?
Copy linkTweet thisAlerts:
@WebJoelJul 04.2007 — 
But it gave me 1 ERROR! (:rolleyes: )

What's does that mean?[/QUOTE]
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.
×

Success!

Help @____MaNiC_MoE____ spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...