Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS Parse Errors

    I'm racking my brain trying to figure out what's wrong with these lines:

    Parse Error - --> #email {display:block; margin-top:10px; font-weight:300;padding-top:20px; background:url(images/line.jpg) top left no-repeat; width:380px; }

    Parse Error - --> ul#sidebar {width:306px;float:left;}

    Parse Error - --> li.btn_bar a.corp {background-image:url(images/home/corp.jpg);}

    Parse Error - --> li.btn_bar a.corp .btn_h {color:#C6D2B1;}

    Parse Error - --> .golden {color:#EDD770;}

    Parse Error - --> #cr {font-size:10px; margin-left: 10px; margin-top:2px;color:#999999;}

    Does anyone have any suggestions?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,471
    Thanks
    6
    Thanked 980 Times in 953 Posts
    There’s nothing wrong with the CSS by itself. Where do you get these error messages from? Got link?

  • #3
    Regular Coder croatiankid's Avatar
    Join Date
    Jan 2006
    Posts
    665
    Thanks
    1
    Thanked 12 Times in 12 Posts
    You got those errors from the w3c validator?

  • #4
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes here: http://copilotdesign.com/testingsites

    The CSS appears to be parsing correctly in IE but not Firefox..

    Any ideas?

  • #5
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    You cannot use HTML comments in CSS.

    They must be like this:

    Code:
    /* comment here */
    Perhaps that's what is causing the problems...
    .
    .

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Things like this are wrong
    Code:
    <!-- Email Opt-in -->
    Thats an HTML comment, not a CSS comment. A correct CSS comment would be
    Code:
    /* Email Opt-in */
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    lol, look at the posting times: 1 minute difference.

    You have your solution now though, copilotdesign.
    .
    .


  •  

    Posting Permissions

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