FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

getting parse error when validating css

 


ponda
I'm not very good with css and this has been driving me crazy, I can't figure out what is wrong...

This is my code:

Quote:

body { background-attachment: fixed; }

A:link
{ text-decoration: none; color: #000000 ; }
A:visited
{ text-decoration: none; color: #000000 ; }
A:active
{ text-decoration: none; color: #000000 ; }
A:hover
{ text-decoration: blink; color: #000000 ;

P
{ font-family:arial;
color: #000000 ;
font-weight:normal;
font-size:10px; }

scrollbar-face-color:FFFFFF;
scrollbar-highlight-color:000000;
scrollbar-3dlight-color:000000;
scrollbar-shadow-color:000000;
scrollbar-darkshadow-color:000000;
scrollbar-arrow-color:000000;
scrollbar-track-color:FFFFFF;


These are my errors:

18 A:hover Parse Error P { font-family:arial; color: #000000 ; font-weight:normal; font-size:10px; } scrollbar-face-color:FFFFFF
19 A:hover Property scrollbar-highlight-color doesn't exist : 0
20 A:hover Property scrollbar-3dlight-color doesn't exist : 0
21 A:hover Property scrollbar-shadow-color doesn't exist : 0
22 A:hover Property scrollbar-darkshadow-color doesn't exist : 0
23 A:hover Property scrollbar-arrow-color doesn't exist : 0
24 A:hover Property scrollbar-track-color doesn't exist : FFFFFF
24 A:hover Parse Error [empty string]


Can someone please help me? T^T
Marcuzzo
thats easy, the scrollbar thingy's aren't valid CSS

and you might want to put the statements in brackets

Code:

{
scrollbar-face-color:FFFFFF;
scrollbar-highlight-color:000000;
scrollbar-3dlight-color:000000;
scrollbar-shadow-color:000000;
scrollbar-darkshadow-color:000000;
scrollbar-arrow-color:000000;
scrollbar-track-color:FFFFFF;
}
Star Wars Fanatic
The scrollbar code isn't valid css as it only works in IE. Either have a separate css file for that and use the include function of IE, or forget it. It usually doesn't end up adding a whole lot to the site anyway.
sonam
Put your scrollbar statment in conditional comment. Also, scrollbar definitions are part of body and it is not work separately like you are wrote. Don't use capital letters in css definitions it is not allowed for valid css.

Code:
<!--[if IE]>
body {
scrollbar-face-color:FFFFFF;
scrollbar-highlight-color:000000;
scrollbar-3dlight-color:000000;
scrollbar-shadow-color:000000;
scrollbar-darkshadow-color:000000;
scrollbar-arrow-color:000000;
scrollbar-track-color:FFFFFF;
}
<![endif]-->


Sonam
Related topics

Parse error - need help
PHP Parse error on form handling - New to PHP
Impossible parse error!
Trouble figuring out a parse error
Parse error: syntax error, unexpected '{' in /home/frih/publ

php error ?[parse error]
PHP - Error
Parse error: syntax error, unexpected T_NEW
[PHP] Parse error
Parse Error in PHP I can't figure out.

PHP/Blogger error
Php parsing error! Need help
Need help with an error
MySQL Data Not Inserting - I keep getting an error
unexpected T_VARIABLE, expecting
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.