img와 텍스트 높이 맞추기 : vertical-align:text-bottom

vertical-align:text-top;
vertical-align:text-bottom;

* align=abamiddle 은 비표준이므로 사용하지 말것

ex1)   <img src=’./imsges/Standard.gif’ border=’0′ style=’vertical-align:text-bottom;’/>

ex2)

<!DOCTYPE html>
<html>
<head>
<style>
img.top {vertical-align:text-top;}
img.bottom {vertical-align:text-bottom;}
</style>
</head>

<body>
<p>An <img src=”w3schools_logo.gif” alt=”W3Schools” width=”270″ height=”50″ /> image with a default alignment.</p>
<p>An <img class=”top” src=”w3schools_logo.gif” alt=”W3Schools” width=”270″ height=”50″ /> image with a text-top alignment.</p>
<p>An <img class=”bottom” src=”w3schools_logo.gif” alt=”W3Schools” width=”270″ height=”50″ /> image with a text-bottom alignment.</p>
</body>
</html>