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
W3C CSS-Validator
Re: W3C CSS-Validator
Thank you! Nice link. With it I improved my CSS by removing strange styles.
Examples:
Style "Tools" (errors highlighted)
Before:
Now:
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
Hi I'm getting the same validation error as below for the inbuilt 'tools' stylesheet
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
Code: Select all
* html>body .clearfix {
display: inline-block;
width: 100%;
}
thanks - Christine
Last edited by sydneysunshine on Thu Apr 06, 2006 3:35 am, edited 1 time in total.
Re: W3C CSS-Validator
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
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.
Re: W3C CSS-Validator
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
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