Beginner CSS Box Border Question

Hello,

I’ve created the following html code to display an image with a border. The image appears at 10x, 10y correctly but the border has a gap in the bottom. What am I missing? Any assistance would be helpful!

I’ve attached the following html code in a txt file and the image I’ve been using to assist.

Thanks in advance!!!

ME

<code>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” lang=“en”>
<head>
<title>TEST PAGE</title>
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />
<style type=“text/css”>
.brdrBox {
margin:10px 0 0 10px;
float:left;
border:thin solid #0f0;
display:block;
}
</style>
</head>
<body>
<div class=“brdrBox”>
<img src=“content90x90.png” alt=“gray box” />
</div>
</body>
</html>
</code>

Here are all the ways to fix… http://www.visibilityinherit.com/code/gap-under-image-example.php

Thank you so much… I was stumbling onto this solution in a text book just as you answered. I sure do appreciate the feedback!!! ME

Hi Eric, i took the liberty of adding one more solution that seems to make Opera work. Tested in Opera, FF3, Safari, Chrome, IE6,IE7,IE8

Opera