Topic: Extra Vertical Space Question
Attached is a test with a CSS text definition and an hr definition in an HTML file. In Firefox Chrome and Safari, the behavior is what I expected. In IE there is a large gap between the two elements. Does anyone know of a way to change the behavior in IE? I suspect this line spacing has already been noticed and worked around.
Here are the browser versions that I am using:
Browser Version:
IE 8.0.60001.18372
FF 3.0.7
Safari 3.2.2
Crome 1.0.154.48
I have not tested this on IE 7, if anyone uses that please test for me although I suspect this behavior is a legacy from earlier code.
Here is the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style>
hr {
border: 0;
margin: auto;
background-color: #CD853F;
height: 3px;
width: 80%;
}
.rightContentHeader{
text-align: center;
margin: auto;
width: 518px;
padding-top: 1em;
font-family: Constantia, "Lucida Bright",
Lucidabright, "Lucida Serif",
Lucida, "DejaVu Serif",
"Bitstream Vera Serif",
"Liberation Serif", Georgia, serif;
font-size: 20pt;
color: black;
font-weight: bold;
text-decoration: none;
}
</style>
</head>
<body>
<p class='rightContentHeader'> Web Design and Development </p>
<hr>
</body>
</html>Thanks for your assistance
WBR

