У меня есть два поля набор, который я хотел бы, чтобы отобразить рядом друг с другом:Как выровнять два div рядом друг с другом?
я сумел получить его правильное расстояние я хочу друг от друга, но не был в состоянии линейке есть высота ,
Ниже приведен html, который я использовал.
<div style="width:900px; height:230px;">
<fieldset style="width:150px;">
<legend>Facilities Required</legend>
<asp:CheckBox ID="PhysicalMailbox" runat="server" Text="Physical Mailbox" /><br>
<asp:CheckBox ID="Uniform" runat="server" Text="Uniform"/><br>
<asp:CheckBox ID="Desk" runat="server" Text="Desk"/><br>
<asp:CheckBox ID="Stationary" runat="server" Text="Stationary"/>
</fieldset>
<div style="width:50%; top:0px">
<fieldset style="width:229px; left:151px; float:right; top:0px;" >
<legend>Access Required</legend>
<asp:CheckBox ID="AccessTag" runat="server" Text="Access Tag" /><br><br>
<asp:Label ID="lblProfile" enableviewstate="false" runat="server" AssociatedControlID="ddProfile" CssClass="FormLabel">Profile</asp:Label>
<ICCM:ICCMDropDownList ID="ddProfile" runat="server" TabIndex="10" style="width:233px;" AppendDataBoundItems="true" >
<Items>
<asp:ListItem Value="" Text="" Selected="True" />
</Items>
</ICCM:ICCMDropDownList>
</fieldset>
</div>
</div>
Заранее спасибо.
Это довольно легко @ Pomster, у Stackoverflow есть так много вопросов и ответов об этой задаче. время для веб-поиска? http://stackoverflow.com/questions/2716955/css-layout-aligning-two-divs-side-by-side и http://stackoverflow.com/questions/4460990/align-2-divs-side-by- сторона –