Posted By

Tate on 01/28/08


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite


Get rid of double margin in IE

 / Published in: CSS


This one has saved me a lot of headaches, because IE 6 has a tendency to double the margins of every element, which has been floated and assigned a left/right margin. To overcome this bug, simply set display: inline on the offending element. This will magically make the bug disappear with no adverse effects on your layout.

  1. display: inline;

Report this snippet  

You need to login to post a comment.