I made a test element of what is going on. Basically, I want to put stuff at the top and bottom of a box (ideally these are elements with rounded corners or whatever to make it look nicer). As you can see in FireFox, everything is displayed correctly. In IE, the top and bottom divs are stretched like crazy. I've already tried overflow: hidden, and that works, but I cannot have the part at the bottom that is hidden not being shown, so I need some other fix. If anyone could help me out, I would be very appreciative. Here's the test code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">
<!--
body {
width: 100%;
height: 100%;
}
#box {
width: 100px;
border: 1px solid blue;
height: auto;
}
#boxTop {
width: 100px;
height: 5px;
background-color: silver;
}
#boxBot {
width: 100px;
height: 5px;
background-color: silver;
}
-->
</style>
</head>
<body>
<div id="box">
<div id="boxTop"></div>
text text<br />
text text<br />
text text<br />
text text<br />
text text<br />
<div id="boxBot"></div>
</div>
</body>
</html>