I’m trying to align a few divs into this structure but nothing is working.
<div>
<div>top</div>
<div>middle
<div>left</div> <div>right</div>
</div>
<div>bottom</div>
</div>
Ive tried using floats with abosolutes, blocks, etc closest im getting is with block-inline but the div which i need aligned right just sits up close to the left div,ived add text-align right with no joy.
Many Thanks
D
Give the
leftandrightdiv awidthand let themfloatMake sure you also clear the float by adding an extra div below with:
clear: both;Code:
CSS:
See code in action: http://jsfiddle.net/GZg6y/