I have the following html code. I try to center vertically a text next to an image, both into a Div.
If I add "vertical-align: top;" it does work, the text is displayed on top. Why won't "vertical-align: middle;" work?
Code: Select all
<div> <img src="image.jpg" style="width:200px; height:65px" /> <span style="vertical-align: middle">Doesn't work.</span> </div>