Posts Tagged ‘Internet Explorer 6’

Internet Explorer 6 (IE6) Double Margin CSS Fix

Wednesday, February 11th, 2009

I thought I should share with you a little bug fix within Internet Explorer 6 that certainly would have had some of you pulling your hair out before now. I am of course talking about a situation where you have a floating element within IE6 that magically gains extra padding or margin without setting it.

The problem occurs when you float an element such as a div within your page with padding or margin. IE6 sees it and decides it has a passion for a fatty (no pun intended) and waves its magical MS wand. The MS spell makes the element expand with “double” the padding you wanted on it.

So what can we do to fix the issue? (more…)