2つのdivを同じ水平位置に整列しようとしています。 1つのdivは左に浮動し、もう1つは右に浮動します。私も別のdivの中に2つのdivを保存しましたが、それでも同じ水平位置に揃えることはできません。同じ水平線で2つのdivを整列させない
#tray {
padding: 20px 15px;
background-color: #36648B;
color: #FFFFFF;
}
.f-left {
/*float: left !important;*/
font-size: 25px;
width: 400px;
}
.f-right {
float: right !important;
width: 200px;
}
.f-left a {
color: white;
}
<div id="tray">
<div>
<div class="f-left">Business Intelligence, CIMB</div>
<div class="f-right">
<asp:Label ID="lblUser" Font-Size="Large" Font-Bold="true" runat="server" />
<a href="WebLogin.aspx" runat="server" id="logout" onclick="web_logout">Log Out</a>
</div>
</div>
</div>
少し違うアプローチを使用できますか? – Shubhranshu