css - Validation errors due to *width IE-hack -
i'm using tool validate css file: http://jigsaw.w3.org/css-validator/
i have 23 errors in css file , more half this:
class="lang-none prettyprint-override">line 46 #left_navigation parse error ;*width: 175px;
the actual css looks this:
#left_navigation { float: left; width: 165px; *width: 175px; margin:0px; padding:12px 5px 5px 5px; }
the error due asterisk setting width. didn't set here originally, it's clear needed deal display problems in ie.
so question is: care these errors? there another/better way doing this? can't take off because bad things happen in ie when this.
if wanna go valid css hack, next allow include solution without necessity include whole modernizr script or changing html (pre-)header adding ie conditional comments:
* html #left_navigation { width: 175px; }
ie4-6 ,
*+html #left_navigation { width: 175px; }
ie7
see http://en.wikipedia.org/wiki/css_filter#star_hack
css w3c-validation
No comments:
Post a Comment