I'm trying to get text to wrap around an image. This code works in Firefox, but not in IE:
XHTML:
CSS:Code:<li> <a href="http://www.random.com"><img src="images/image.gif" id="floatedimage" /></a> <h2>A headline.</h2> <p>Some text is here.</p> </li>
The code works in both browsers if I take it out of the list:Code:floatedimage{ float: left; }
In CSS, if I set:Code:<a href="http://www.random.com"><img src="images/image.gif" id="floatedimage" /></a> <h2>A headline.</h2> <p>Some text is here.</p>
The float works, but the image is jogged a few pixels too high in IE (vs. Firefox.) So I'm thinking maybe there is a better way to remedy the problem?Code:ul{ display: inline; }
Thank you, you guys and girls are awesome.





Bookmarks