We would like to know how to align middle for image and text.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
img {<!--from w w w. ja v a2 s .com-->
vertical-align: middle;
}
</style>
</head>
<body>
<div>
<h4>
<img src="http://www.java2s.com/style/download.png" style="height: 80px;"/> Today's Events
</h4>
</body>
</html>
The code above is rendered as follows: