dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: When I validated my css, I got ton of errors.

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    18

    When I validated my css, I got ton of errors.

    I'm new to programming a site and this is my only second css.

    I got 71 errors, wow

    I don't want to post all the errors but here is a few

    1 html Parse Error document.execCommand("BackgroundImageCache",false,true))
    3 .CruiseSearchBoxColumn Value Error : margin-bottom Unknown dimension 20px\0
    3 .CruiseSearchBoxColumn Value Error : margin-bottom / is not a margin-bottom value : /
    4 #CruiseGuarantee p Value Error : padding-top Unknown dimension 10px\0
    4 #CruiseGuarantee p Value Error : padding-top / is not a padding-top value : /
    5 #CruiseGuarantee Value Error : background Unknown dimension 12px\0
    6 #NeatNonStop Value Error : padding-top Unknown dimension 20px\0
    6 #NeatNonStop Value Error : padding-top / is not a padding-top value : /
    7 .AdditionalLinksImage Value Error : background Unknown dimension 2px\0
    8 .AdditionalLinksImageOpen Value Error : background Unknown dimension 2px\0

    Here is my css:

    html{filter:expression(document.execCommand("BackgroundImageCache",false,true));}
    #rxPagination li{margin-right:5px;padding-right:2px;}
    .CruiseSearchBoxColumn{margin-bottom:20px\0/;}
    #CruiseGuarantee p{padding-top:10px\0/;}
    #CruiseGuarantee{background:transparent url(/images/tick_mark.png) no-repeat scroll 2px 12px\0/;}
    #NeatNonStop{padding-top:20px\0/;}
    .AdditionalLinksImage{background:transparent url(/images/plus.png) no-repeat scroll 0 2px\0/;}
    .AdditionalLinksImageOpen{background:transparent url(/images/minus.png) no-repeat scroll 0 2px\0/;}

  2. #2
    Join Date
    Mar 2013
    Location
    Denmark
    Posts
    14
    .CruiseSearchBoxColumn{margin-bottom:20px\0/;} - The CSS thinks that you try to set more than one padding in a single line. With CSS, it is possible to set more sizes in one line like this:
    <HTML>
    padding:2px 4px 2px 4px;
    </HTML>
    and the CSS thinks that "\0/" is another value but since "/" isn't a value it doesn't know what to do.
    What is the purpose to write it like this? Maybe there is another more correct way to do it.

    I think this is the most common mistake in these 8 lines
    Hope it helps

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



Recent Articles