Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS rollover ruining margin in IE

Status
Not open for further replies.

RedRobotHero

Technical User
May 2, 2003
94
CN
The page where it happens is right here:

When you go over the CSS rollover that changes the background color, it makes the bottom margin of a different DIV disappear.

I'll post a strippped-down version of the page soon.
 
Here's the stripped-down version:


It seems a lot of things are required to set off this bug. I guess that's a good sign, because I'll have a lot of ways to try to avoid it. But the bad news is that changing the
Code:
<div><a><img></a></div>
of the rollover is risky stuff that could introduce browser inconsistencies of its own.
 
I found a way to avoid it; I've got to use padding on the outside DIV instead of the margin of the inside DIV.

If this page wasn't for a client, this is exactly the sort of browser bug I would refuse to accomodate on principle.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top