Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

divs

Options
  • 02-06-2011 1:31am
    #1
    Registered Users Posts: 210 ✭✭


    hi when i float 2 divs inside a warpper div it stops expanding i have the warpper set to 100% but it stops when i float 2 why would this b? would any one know


Comments

  • Registered Users Posts: 184 ✭✭Razzuh


    Could you copy and post some html and the css?


  • Registered Users Posts: 11,979 ✭✭✭✭Giblet


    You need to clear after the two divs.
    <style>
    .float {
      float:left;
    }
    .clear {
      clear:both;
    }
    </style>
    
    <div class="wrapper">
      <div class="float"></div>
      <div class="float"></div>
      <div class="clear"></div>
    </div>
    


  • Registered Users Posts: 210 ✭✭pjwhite99


    Thanks giblet worked out for me well thanks again


Advertisement