I am getting unexpected results when using vertical-align on an image with accompanying text. If the text is wider than the container, it wraps UNDER the image like this, instead of simply wrapping to the next line:
My HTML is simple:
<ul>
<li><img .../> some text </li>
...
</ul>
- I have a height and
overflow-y:scroll
on theUL
(likely not relevant) - I have a height set on the
LI
that is large enough for the placeholder image plus spacing. - I have
vertical-align:middle
on the image to get the text in the right place, almost - The rest is just margins and borders
- Am am NOT using floats
How can I get the text to wrap properly, perferably without more markup?