Im having trouble getting this site to show correctly in IE (big surprise). I have a div element (side bar) inside another div element that simply takes the size of the largest element inside as the height. Firefox correctly sizes the div to the sidebard with no space. However, IE seems to automatically place padding on the div, leaving unwanted whitespace below the element. I have attached pictures as to what I mean, and have dashed to border of the divs to outline the problem.
Here's the CSS I'm using for the sidebar (leftColumn), and the enclosing div (contentBlock)
div.leftColumn {
float:left;
width:150px;
height:600px;
margin-right:10px;
background-color:darkgreen ;
border: 1px dashed black;
color:white;
}
div.contentBloc k {
float:left;
width:100%;
background-color:white;
border: 1px dashed black;
font-size:1em;
background-image: url(images/watermark2.bmp) ;
background-position: bottom right;
background-repeat: no-repeat;
}
Any ideas on how to get rid of this space on IE?


Here's the CSS I'm using for the sidebar (leftColumn), and the enclosing div (contentBlock)
div.leftColumn {
float:left;
width:150px;
height:600px;
margin-right:10px;
background-color:darkgreen ;
border: 1px dashed black;
color:white;
}
div.contentBloc k {
float:left;
width:100%;
background-color:white;
border: 1px dashed black;
font-size:1em;
background-image: url(images/watermark2.bmp) ;
background-position: bottom right;
background-repeat: no-repeat;
}
Any ideas on how to get rid of this space on IE?
Comment