Width of li with two floats different in IE, correct in FF

Posted by Nathan Loding on Stack Overflow See other posts from Stack Overflow or by Nathan Loding
Published on 2010-04-12T14:17:34Z Indexed on 2010/04/12 14:23 UTC
Read the original article Hit count: 333

Filed under:
|
|
|

I've worked out most of the kinks with my "lava-lamp" effect that I'm trying to create. Basically I want two curly braces (both are images) to wrap a list-item, then follow over to the next list-item. I always build in FF, then make exceptions for IE. I can't figure out what exception I need to make!

I'm using an absolutely positioned li that contains two div's. The first div is floated left, the second is floated right. The width of the li is set to the width of the li it supposed to be wrapping. Thus creating the effect of the braces on the left and right sides of the text. It works beautifully in Firefox, but IE has two issues:

  1. The bottoms of the images are cut off. Sometimes they reappear when the animation ends, sometimes they don't. I assume this has to do with height, but no matter what I set the height to, it fails!
  2. The width is completely wrong.

Here's a live example of it: http://jsbin.com/odome/2

The left position in IE is always 5-7px more than in FF, but that's a small difference. I'm more concerned with the width and the bottoms of the images being trimmed.

Thanks, as always, for the help!

© Stack Overflow or respective owner

Related posts about css

Related posts about float