How do I hide a peice of html code from internet explorer so only mozilla...

Purple Moogle

New member
IE has a method of hiding/enabling code based on browser version but can also be used to ignore code.

<![if !IE]>
<link rel="stylesheet" type="text/css" href="css/not-ie.css" />
<![endif]>

Internet Explorer will ignore this while all other browsers will ignore the if tags (since they're just comment tags intepretted by IE) and will link the stylesheet. This way you can use 'display: none;' on anything you want IE to hide and then 'display: block;' them back in in the non-IE style.
 
Back
Top