Log in

View Full Version : text with image vertical align



lord22
07-30-2008, 12:06 PM
Hi

I have a line with image + text.
If the image height is longer than the text, so the text is going down.
like this:
____[] ( []=picture )

What should I do in order to align them to the middle
like this:
---[] ( []=picture )

Thanks!

rangana
07-30-2008, 12:11 PM
Have you tried using CSS' vertical-align property (http://www.w3schools.com/Css/pr_pos_vertical-align.asp):


<img src="whatever.jpg" alt="myimage" style="vertical-align:middle;">


Hope that makes sense.

lord22
07-30-2008, 12:13 PM
Have you tried using CSS' vertical-align property (http://www.w3schools.com/Css/pr_pos_vertical-align.asp):


<img src="whatever.jpg" alt="myimage" style="vertical-align:middle;">


Hope that makes sense.

GREAT!!
Thank you !!! :)