PDA

View Full Version : CSS Validation help...


Rob_Che
05-27-2008, 02:05 PM
Can anyone help with these errors ?

CSS VALIDATOR (http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.doncasterlivemag.co .uk%2Fmain.htm&profile=css21&usermedium=all&warning=1&lang=en)

The last one is the ie/png fix...

What's the 'position fixed' error for ?

Rob

d a v e
05-27-2008, 02:24 PM
you canīt have this #GGGGGG in hexadecimal for rgb. #ffffff is the highest value (i.e. white: max red max green max blue)

you want either
background-attachment: fixed;
or simply
background-fixed:fixed


i found topstyle lite really useful when writing css as it guides you as to the valid options for each property
(near the bottom of the page http://www.newsgator.com/Individuals/Default.aspx )

domedia
05-27-2008, 02:27 PM
The errors with explanation are literal.
"fixed is not a background-position value" <=there is no 'fixed' value for that CSS property.

Same with the other ones. Invalid code for color, and the file linked to doesnot exist.

Rob_Che
05-27-2008, 02:38 PM
Cheers Dom / dave . . .

The errors are very literal - just couldn't see the error.
I'll sort them no problem...

Anyone got a clue on validating the IE fix ?

domedia
05-27-2008, 02:59 PM
It tells you it cannot find the script. So either the path is wrong, or the file is not there.

Rob_Che
05-27-2008, 03:01 PM
But it works !? I'll have a play around . . .

Cheers Dom.

domedia
05-27-2008, 07:44 PM
But it works !?

Indeed it does :-)

I read the error wrongly. With these quotes it makes more sense:
Property "behavior" doesn't exist.

'behavior' is IE only, it's not a standard CS property. Compliant browsers will ignore CSS properties they don't understand, so you're good.