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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Help with validing css

    Hi there. I am currently trying to validate my stylesheey to version 3 specifications.

    The W3C validator is showing the following errors:

    Code:
    145	 label	 Property border-size doesn't exist : 2px
    196	 #bloginfo2	 Property webkit-border-radius doesn't exist : 5px
    196	 #bloginfo2	 Property moz-border-radius doesn't exist : 5px
    197	 #bloginfo2b	 Property webkit-border-radius doesn't exist : 5px
    197	 #bloginfo2b	 Property moz-border-radius doesn't exist : 5px
    198	 #bloginfo2c	 Property webkit-border-radius doesn't exist : 5px
    198	 #bloginfo2c	 Property moz-border-radius doesn't exist : 5px
    221	 a.links3:link, a.links3:active, a.links3:visited	 Value Error : border-bottom attempt to find a semi-colon before the property name. add it
    222	 a.links3:hover, a.links3:visited:hover	 Value Error : border-bottom Too many values or values are not recognized : solid 1px solid 1px #009
    I would prefer to keep the webkit radii coding and I do understand thats not standard (I'm guessing there is no standard way to make rounded borders).

    Also its reporting these confusing errors:

    Code:
    79		Same colors for color and background-color in two contexts a.nav:hover and h5
    79		Same colors for color and background-color in two contexts a.nav:visited:hover and h5
    81		Same colors for color and background-color in two contexts a.nav:hover and subscribersss:link
    81		Same colors for color and background-color in two contexts a.nav:visited:hover and subscribersss:link
    83		Same colors for color and background-color in two contexts a.nav:hover and a.subs:link
    There are loads of these and I'm not sure why its doing this.

    Validator settings are:

    Profile: CSS Level 3
    Medium: screen
    Type: automatic
    Warnings: normal report
    Vendor extensions: default

    Thanks in advance for your help.

    If your interested, here is the complete stylesheet: http://pastebin.com/DCbMq4sh

  • #2
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Anyone?

  • #3
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,225
    Thanks
    10
    Thanked 269 Times in 268 Posts
    A bunch of typos in your code:
    border-size => border-width
    webkit stuff should be -webkit
    moz stuff should be -moz
    missing semi-colon

    The warnings are just telling you that an object of one color sitting on top of a background of the same color will be impossible to read. Not an error, just letting you know this probably isn't a good situation.

    Dave

  • Users who have thanked tracknut for this post:

    swarfega (09-10-2012)


  •  

    Tags for this Thread

    Posting Permissions

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