Hi,
I have this simple content block code. This appears ok in IE6, but in Netscape 7.1, it appears such that the image is protuding past the height of the div. I have tried both "auto" and "inherit" for this height attribute. What I ultimately want is that the div will grow in height to accompany the content, including the image. What am I doing wrong? Here is my code:
Thanks! RR![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
I have this simple content block code. This appears ok in IE6, but in Netscape 7.1, it appears such that the image is protuding past the height of the div. I have tried both "auto" and "inherit" for this height attribute. What I ultimately want is that the div will grow in height to accompany the content, including the image. What am I doing wrong? Here is my code:
Code:
<html>
<head>
<style type="text/css">
.Content {
text-align: left;
background-color: #f7f7f7;
width: 100%;
margin-top: 8px;
margin-right: 8px;
margin-bottom: 8px;
margin-left: 8px;
padding-left: 2px;
padding-right: 2px;
padding-top: 4px;
padding-bottom: 4px;
border: 1px solid #CCCCCC;
vertical-align: middle;
height: auto;
}
.ContentImage {
border: 1px solid #999999;
}
h1 {
font-family: Arial, sans-serif;
font-size: 125%;
/*color: #006699;*/
/* color: #000000; */
color: #ff0000;
font-weight: bold;
margin: 6px 0px 6px 8px;
}
h2 {
font-family: Tahoma, Arial, sans-serif;
font-size: 105%;
color: #000000;
/*color: #006699;*/
font-weight: bold;
margin-top: 4px;
padding-left: 4px;
margin-bottom: 14px;
}
p {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 70%;
color: #666666;
padding-left: 8px;
padding-right: 6px;
/* margin-top: -11px; */
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<div class="Content">
<img src="images/ArmyPic2.jpg" alt="Placeholder" width="150" height="117" hspace="4" vspace="4" align="left" class="ContentImage">
<h2>Test</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem
nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat
volutpat. Ut wisis enim ad minim veniam, quis nostrud exerci tution
ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo.</p>
<p class="strongLink"><a href="test.cfm">test</a></p>
</div>
</body>
</html>
Thanks! RR
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)