I'm trying to create a top bar for my webpage thats seperated into two sections. However, I'm having difficulty getting my divs positioned. It would appear the wrap collapses with these styles set. Howe can I avoid this.
I have somthing like this,
<div id="wrap"> <div id="one"></div> <div id="two"></div> </div> Css is as follows;
#wrap { position: fixed; top:0; width: 100%; background-color:#ff0; } #one { position: relative; left:0; width: 40%; background-color: #f00; } #two { position: relative; right:0; width: 40%; background-color: #00f; } I want it to display on page something like this...
|One | (wrap underneath) | Two|
Any help would be much appreciated.