Most people will try to wrap the text with a span class and try to vertically align it.
When what you really have to do is apply the class to the image instead.
For example:
-
-
<style>
-
.imageMiddle {
-
vertical-align:middle;
-
}
-
</style>
-
-
<div>
-
<img src="pic.jpg" class="imageMiddle" />Some Text
-
</div>
-
Enjoy!
Tags: CSS






