We would like to know how to scale an image to match text height.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
img {<!--from w w w. j av a2 s. co m-->
height: 1em;
}
</style>
</head>
<body>
Hi
<img src="http://www.java2s.com/style/download.png" />
</body>
</html>
The code above is rendered as follows: