Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-08-2012, 10:12 PM   PM User | #1
swarfega
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
swarfega is an unknown quantity at this point
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
swarfega is offline   Reply With Quote
Old 09-09-2012, 05:58 PM   PM User | #2
swarfega
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
swarfega is an unknown quantity at this point
Anyone?
swarfega is offline   Reply With Quote
Old 09-09-2012, 06:02 PM   PM User | #3
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 891
Thanks: 4
Thanked 205 Times in 204 Posts
tracknut is an unknown quantity at this point
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
tracknut is offline   Reply With Quote
Users who have thanked tracknut for this post:
swarfega (09-10-2012)
Reply

Bookmarks

Tags
css, validation, w3c

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:09 AM.


Advertisement
Log in to turn off these ads.