When I have three divs that all have a float, I want the sections to expand or contract based on how long the data inside them has been stored.
For example, if the first address is very long, I want the 1st box to expand and click on the second. Firefox does this, but Internet Explorer requires the width to look right. In IE7, it does not appear at all - each div has a table with two columns, and in IE7 it shows the path of the 2nd column to the far side of the page, and does not bind to the 1st column, despite setting align = left on the 2nd column and set a small width in the 1st column. I have the document type indicated on the main page, and I tried to add clarity: both without luck.
Why is the width completely changing, how is the floating point field displayed in IE, and how can I fix it? The page should look good in IE7.
.FloatingSection
{
float:left;
padding-bottom:10px;
padding-right:10px;
}
<div id="FirstPerson" class="FloatingSection">
</div>
<div id="SecondPerson" class="FloatingSection">
</div>
<div id="ThirdPerson" class="FloatingSection">
</div>
I noticed that in IE8 this just looks great.
source
share