Beginner CSS Box Border Question


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!!!


<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “”>
<html xmlns=“” lang=“en”>
<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;
border:thin solid #0f0;
<div class=“brdrBox”>
<img src=“content90x90.png” alt=“gray box” />

Here are all the ways to fix…

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