У меня проблема с ie7. В Firefox и IE8 все работает нормально.
В ie7 первый элемент работает нормально, но все остальные толкаются, как будто они применены для очистки.
изображение изображает это лучше всего.
Вот код.
.newLabellg
{
float:left;
width:66px;
margin:3px 0 0 0;
font-weight:bold;
color:#000;
}
<div style="float:left; width:320px;">
<div style="margin-bottom:10px; float:left;">
<div class="newLabellg">Cusotmer#:</div>
<div style="float:left;">
<asp:TextBox ID="CustomerNumber" runat="server" Width="220px"></asp:TextBox>
</div>
</div>
<div style="margin-bottom:10px; float:left; clear:both;">
<div class="newLabellg">Cusotmer:</div>
<div style="float:left;">
<asp:TextBox ID="CustomerName" runat="server" Width="220px"></asp:TextBox>
</div>
</div>
<div style="margin-bottom:10px; float:left; clear:both;">
<div class="newLabellg" style="float:left;">Address:</div>
<div style="float:left;">
<asp:TextBox ID="Address" runat="server" Width="220px"></asp:TextBox>
</div>
</div>
<div style="margin-bottom:10px; float:left; clear:both;">
<div class="newLabellg">Mailing Address:</div>
<asp:TextBox ID="Address2" runat="server" Width="220px"></asp:TextBox>
<div style="float:left; margin:3px 0 0 0">
<asp:DropDownList ID="City" runat="server" Width="109px">
</asp:DropDownList>
<asp:DropDownList ID="Province" runat="server" Width="109px">
</asp:DropDownList></div>
</div>
</div>
Любая идея, почему / что ie7 делает и как я могу это исправить?