Undercrank

CSS

November 3, 2003

Internet Explorer's "Double Margin" bug

This is starting to become an IE bug database, isn't it? Today's latest Microsoft "quirk" is the appearance of the so-called "double-margin" bug (details on Big John's "Bughouse" page). The basic idea is that items with a margin: set to any value that then also have a float: property set to left, instantly gain a margin that is double their original size.

The only obvious way around it to create an IE-specific rule that applies a margin that's half the size you want it to be - which will then double up to be the size that it was intended once the float: property is applied.

(For a method of creating such a rule, see my earlier post that references the star html bug. Unfortunately the bug affects IE6 as well, so the rather more elegant mid-pass filter won't apply here.)

More of the same RSS

Fixing the double margin bug in IE

The ridiculous double margin bug that affects Internet Explorer finally has a cure.

Internet Explorer 7

Dean Edwards has put together a set of scripts that add some sorely lacking functionality from IE5.5 and IE6.0.

'Nuff Said

Why tables for layout is stupid.

Media rules in Internet Explorer 5.0

It's probably well documented elsewhere, but another CSS failing in Internet Explorer came up for me today. IE5.5 (and I presume, earlier) fail to properly respect the media attribute within a style tag. For example, in the following code IE5.x...

Trackbacks

Trackback URL for this entry is:

Post a comment

Remember personal info?