This is driving me crazy, so I thought I'll ask if anybody could explain why there is narrow bottom margin added under the image when the image is placed inside div/cell with background color. Here's the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html>
<head>
<title>Problem</title>
</head>
<style type="text/css">
.color_table {
background-color: #8c0067;
width: 200px;
align: center;
}
.color_div {
background-color: #8c0067;
width: 200px;
}
</style>
<body>
<table>
<tr>
<td class="color_table">
<img src="http://www.gravatar.com/avatar/4253171452772bb013319698f2ddbfc4?s=128&d=identicon&r=PG">
</td>
</tr>
</table>
<hr>
<div class="color_div">
<img src="http://www.gravatar.com/avatar/4253171452772bb013319698f2ddbfc4?s=128&d=identicon&r=PG">
</div>
</body>
</html>
If I remove the doctype line div and td work as I would expect i.e. no margin appears under the image.