IE7 weirdness - When I set the CSS of an element via jquery, I lose the margin of a sibling element.

Posted by Spines on Stack Overflow See other posts from Stack Overflow or by Spines
Published on 2010-05-04T00:54:26Z Indexed on 2010/05/04 0:58 UTC
Read the original article Hit count: 317

Filed under:
|
|

When I call $('.elem').css('opacity', .5); then the margin of element to the right of .elem goes to 0, and butts right up against .elem for some reason. If I comment that line out, then the margin is fine.

This doesn't happen on firefox or chrome, but does happen on IE7.

Anyone know how to fix this?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about css