W3C CSS-Validator

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
LeisureLarry

W3C CSS-Validator

Post by LeisureLarry »

I just checked my css with http://jigsaw.w3.org/css-validator/validator-uri.html

It warned me several times that I didn´t define a background-color in cases only a color is defined. Is this really a rule for valide css that both colors must be defined? I always define the background-color in a class and use it for the divs in which it should be used.

Greats Larry
URAN

Re: W3C CSS-Validator

Post by URAN »

Thank you! Nice link. With it I improved my CSS by removing strange styles.

Examples:

Style "Tools" (errors highlighted)

Before:
..... * html>body .clearfix {
display: inline-block;

width: 100%;
}
* html>body .menu_horiz{
display: inline-block;

width: 100%;
}
.....

Now:
.....
.clearfix {display: block; width: 100%;}
.menu_horiz{display: block; width: 100%;}
.....
sydneysunshine

Re: W3C CSS-Validator

Post by sydneysunshine »

Hi I'm getting the same validation error as below for the inbuilt 'tools' stylesheet

Code: Select all

	* html>body .clearfix {
		display: inline-block; 
		width: 100%;
	}
If I change it to display: block, (which was recommended in another post) will this affect the layout for other browsers? I can only test on ie and firefox. btw the site is www.wscf.org.au and it's using all default stylesheets and templates.

thanks - Christine
Last edited by sydneysunshine on Thu Apr 06, 2006 3:35 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: W3C CSS-Validator

Post by Dr.CSS »

the Validator doesn't like IE hacks, chokes on every one i've ever thrown at it.
IMHO as long as thats all it's chokin on i keep on movin, course i can't put the Val. seal on my page but  ::)

  mark
Last edited by Dr.CSS on Thu Apr 06, 2006 4:39 am, edited 1 time in total.
sydneysunshine

Re: W3C CSS-Validator

Post by sydneysunshine »

Yes... I was wondering if it was a hack. I haven't seen that one (display: inline-block) before.
And then I'm also looking at it in ie7 and wondering how long before they release it and what we'll have to do to get that template to look right then  :)
No matter now - the staff of my work love it, so it works well as an accessible and user friendly template
Thanks
Locked

Return to “Layout and Design (CSS & HTML)”