Page 1 of 1

CSS Validation errors

Posted: Thu Jan 17, 2008 7:04 pm
by cnymike
I was checking CSS validation on a test site today and the report showed these errors. Comments?

URI : http://www.not-a-sex-site.com/cnymike/p ... plateid=22
310 Parse Error - : 26%; display: inline; margin-left: 0; } this is the end of the menu line break fix */ div#sidebar.hascontent
432 code, pre Value Error : white-space -moz-pre-wrap is not a white-space value : -moz-pre-wrap
433 code, pre Value Error : white-space -pre-wrap is not a white-space value : -pre-wrap
434 code, pre Value Error : white-space -o-pre-wrap is not a white-space value : -o-pre-wrap
435 code, pre Property word-wrap doesn't exist : break-word

URI : http://www.not-a-sex-site.com/cnymike/p ... ype=screen
430 #primary-nav li, #primary-nav li.menuparenth Property _float doesn't exist : left
430 #primary-nav li, #primary-nav li.menuparenth Property _height doesn't exist : 1%
431 #primary-nav li a Property _height doesn't exist : 1%

Re: CSS Validation errors

Posted: Fri Jan 18, 2008 5:11 am
by Dr.CSS
I don't know about the top ones but the bottom ones are the IE hacks documented in the Menu CSS saying they will make the CSS not validate...

I'm thinking there should be a new Style Sheet type for IE6 that has a if IE call like the CSS menu JS for IE has...

Re: CSS Validation errors

Posted: Sat Jan 19, 2008 2:32 am
by cnymike
Turns out that the CSS style sheet has a comment that states that the CSS will not validate. Arrrgh.

Re: CSS Validation errors

Posted: Sun Jan 20, 2008 5:02 am
by Dr.CSS
If you are real concerned about it you might try calling a separate stylesheet just for IE out of you root or uploads or etc...

You can use the if statement like the one for the CSS drop down menu IE JS...


add the CSS call here instead