I've been banging my ahead on this IE7 bug for the last few days and it's time to resort to the mind of the crowd.
I have the following HTML and CSS: http://beerpla.net/for_www/ie7_test/test.html
The goal is to have a <ul>
, with each <li>
containing a small icon and some text. Multiline text would be aligned to itself and not wrap under the image.
I've tried using float:left
on the image and a bunch of other things, and finally I thought the position:absolute
would work for sure but in IE7 I consistently see the text pop off to the next line and get misaligned with the image:
This is what I expect it to look like:
I even tried to make the div display:inline
which kind of worked but then started wrapping under the image for long lines, so it was no good. zoom:1
also produced a similar effect.
I'm at a loss at the moment. This code works fine in all other browsers. IE7 is a special, very special child.
Any ideas?
Thank you.
Edit: If you have IE8, you can emulate IE7 by pressing F12 and then Alt-7.