Vertical Aligned Text and Image in list

Posted by Wayne on Stack Overflow See other posts from Stack Overflow or by Wayne
Published on 2010-04-26T20:05:20Z Indexed on 2010/04/26 20:23 UTC
Read the original article Hit count: 244

Filed under:
|
|
|

Is there a way of vertical aligning text and an image in a list?

e.g.

<li>Some text here <img src="image.jpg" alt="" /></li>

The text doesn't align in the middle of the side of the image, it appears at the bottom then the image is next to it. I need the text to be in the center point between the image on the side.

What's the best way of doing it? I know having a image inside a list isn't valid HTML (AFAIK).

Thanks :)

© Stack Overflow or respective owner

Related posts about html

Related posts about vertical-alignment