Internet Explorer CSS hack

Internet Explorer CSS hack

Aaaargh – working on Mark’s new site and got the site all looking great on firefox and being a good web-designer I went to check it on IE.

The menus looked rubbish!!!! Much surfing and hacking about on the web found the terrible hack you need to put in to fix it for ie.

margin: 6px 0 6px 15px;
*margin: 3px 0 -3px 15px;

The first line is proper and works for all proper browswers. The 2nd line is the dirty hack you have to put in to make the margins different for IE – IE treats things wrong in terms of padding and margins on elements.

A bit techie but had to rant about it somewhere!

2 thoughts on “Internet Explorer CSS hack

  1. blm

    I haven’t tried IE8 yet – will verify that the hack works with it, but the vast majority of folk are on flavours of IE so need to get it working on that.

    Looking good though. Will blog once its live

Leave a Reply

Your email address will not be published. Required fields are marked *