Forum Moderators: not2easy

Message Too Old, No Replies

Parse error in IE6 - css

         

sumitra

9:38 am on Mar 12, 2008 (gmt 0)

10+ Year Member



Hello,

I have the following errors in my css..

281 * Parse Error - *html #content .four{ top:228px; right:173px; position:absolute; }
284 * Parse Error - *html #content { margin-left:-15px; }
287 * Parse Error - *html .menu li{ padding:0 25px; }
290 * Parse Error - *html img { border:none; }

If I remove the star, w3c validator will not show the errors, but the layout of the website will be changed in other browsers also. So I have to keep the star to position the elements in IE. Please do inform me if you have any alternate, I mean to avoid the validation errors in w3c.

Thank you,

Sumitra.

birdbrain

11:15 am on Mar 12, 2008 (gmt 0)



Hi there sumitra,

to get your stylesheet to validate, change...


*html


...to...


* html


in all instances. ;)

You could also look into using IE conditional comments as an alternative method.

<!--[if IE 6]>

<![endif]-->

birdbrain