I am trying to align two divs in a same horizontal position. One div is float left and the other is float right. I've also kept the two divs inside another div but they still can not be aligned to a same horizontal position.
#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>