CSS IE double padding bug

If you are floating elements and attempting to apply a padding to their container, you may notice that Internet Explorer is doubling your padding. So:

This is what you want:

This is what’s happening:

The solution:

PositionIsEverything.net deserves the credit

To solve it, simply apply a display:inline to your floated element:

display:inline;

UPDATE: If this is not possible, applying a zoom will also correct this IE Bug:

zoom:1

6 Responses to “CSS IE double padding bug”

Leave a Reply