We would like to know how to get rid of the white space under and above image.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
img {<!--from www.j a v a 2 s . co m-->
display: block;
border: 2px solid #000;
height: 140px;
width: 200px;
padding: 0;
}
</style>
</head>
<body>
<img src="http://www.java2s.com/style/download.png" />
</body>
</html>
The code above is rendered as follows: