Previous Message
Next Message

IE Ghost Bug (was: background color and margin issue?)

Sent by Gunlaug_Sørtun on 14 January 2005 02:02


Ryan Bowman wrote:
> ... I tried the crazy IE comment which seems to be working nicely, but 
> I'm curious, why does IE exhibit this behavior, and is there another 
> (better?) way to avoid this ghost?

Gunlaug Sørtun wrote:
> ...

> I've been searching for this bug on the web, but haven't found a 
> better explanation than the one ICao sent me, so that's all I have 
> for now.

.... but after some testing:
A negative back-side margin will kill this bug in all its variations.
I used "margin-right: -1px;" on a left-float, and could then put in as
many variants of those bug triggers as I could come up with, and the bug
was gone no matter what.

After that I also found this bug described over at
http://www.positioniseverything.net/explorer/dup-characters.html , with
some of the same solutions near the bottom.

So there; negative back-side margins on floats can do more than create
multi-column layouts. Another reason why I haven't had the need to kill
this bug earlier, I guess.

Note: In some layouts this back-side margin has to be compensated for,
since any left-float to the right of the one with the fix, will move 1px
to the left.

regards
	Georg
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: