IE7 li with image and text issue - Text . Almost working.

Posted by jmoore111 on Stack Overflow See other posts from Stack Overflow or by jmoore111
Published on 2010-05-14T21:08:30Z Indexed on 2010/05/14 21:14 UTC
Read the original article Hit count: 123

Filed under:

I'm using an unordered list.

With an image to the left and text to the right.

I only noticed today that IE7 was displaying this so badly that it wasn't even acceptable. Woops for not realising sooner.

I have the given the image a class and the text wrapped in a seperate div.

<ul>
<li><a href="domain"><img src="http://www.domain.com/img.jpg" alt="img class="footer-thumb" width="40px" height="40px" /></a>
    <div class="recent-post-content">
    <p>day date time</p>
    <p><a title="Content title" href="http://www.domain.com/contentitle &raquo;</a></p>
    </div></li></ul>

What's happeninig so far is that it is perfect in every browser except in IE7 where the images are exactly where they should be but the class "recent-post-content" is all pushed up one exactly one image ([li] height) above so the last image doesn't have any text beside it and the first image ([li]) has its "recent-post-content" above it.

I guess it's something simple but after getting this far on my own I thought it best to try and get some advice to fix the last little bit.

Any ideas?

Thanks

© Stack Overflow or respective owner

Related posts about ie6-ie7-bug