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!