Get rid of double margin in IE


/ Published in: CSS
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. display: inline;

URL: http://scarfoo.com/archives/16

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.