Page 1 of 1

W3C CSS-Validator

Posted: Wed Feb 15, 2006 1:51 pm
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

Re: W3C CSS-Validator

Posted: Thu Feb 16, 2006 10:06 am
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%;}
.....

Re: W3C CSS-Validator

Posted: Thu Apr 06, 2006 3:29 am
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

Re: W3C CSS-Validator

Posted: Thu Apr 06, 2006 4:22 am
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

Re: W3C CSS-Validator

Posted: Thu Apr 06, 2006 4:29 am
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