www.webdeveloper.com
Results 1 to 9 of 9

Thread: What's a Parse ERROR?

  1. #1
    Join Date
    Mar 2007
    Location
    Jeddah (Currently)
    Posts
    157

    Question What's a Parse ERROR?

    I've been validating my first CSS file and I don't understand what it means...

  2. #2
    Join Date
    Sep 2005
    Posts
    597
    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.
    css/xhtml firefox dsl ubuntu

  3. #3
    Join Date
    Mar 2007
    Location
    Jeddah (Currently)
    Posts
    157
    Sure... Here's the code :

    HTML 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')}

  4. #4
    Join Date
    Sep 2005
    Posts
    597
    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.
    css/xhtml firefox dsl ubuntu

  5. #5
    Join Date
    May 2003
    Location
    Andover, UK
    Posts
    410
    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 ?

  6. #6
    Join Date
    Mar 2007
    Location
    Jeddah (Currently)
    Posts
    157
    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!

  7. #7
    Join Date
    Nov 2006
    Location
    Springfield, MO
    Posts
    1,541
    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]-->
    Ryan Butler

    Ryan Butler.org

  8. #8
    Join Date
    Mar 2007
    Location
    Jeddah (Currently)
    Posts
    157

    Talking thx!

    Yaaaaaay! It worked

    But it gave me 1 ERROR! ( )

    73 Lexical error at line 73, column 3. Encountered: "[" (91), after : "<!"
    What's does that mean?

  9. #9
    Join Date
    Dec 2005
    Location
    American, living in Toronto, ON. CANADA
    Posts
    6,746
    Quote Originally Posted by MaNiC MoE
    But it gave me 1 ERROR! ( )
    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.
    I build for: Firefox and tweak for IE

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center

"

"

X vBulletin 4.2.2 Debug Information

  • Page Generation 0.13538 seconds
  • Memory Usage 2,931KB
  • Queries Executed 13 (?)
More Information
Template Usage (35):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_code
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (9)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates