CSS tableless div layout help!

Discussion in 'CSS' started by DiscJockey, Mar 23, 2009.

  1. #1
    I need some help with this small CSS problem.

    Here is the code I got:

    <div style="width:750px;border:1px solid blue;">
    <div style="float:left;border:1px solid red;width:500px;height:100px;">page title</div>
    <div style="float:left;border:1px solid red;width:500px;height:500px;">content</div>
    <div style="float:left;border:1px solid red;width:200px;height:500px;">ads</div>
    </div>
    Code (markup):
    I am trying to get the ads div beside the title/content but instead the ads div stays next to the content box. How do I get ads box to go up next to title div?
     
    DiscJockey, Mar 23, 2009 IP