Posted By

theoni on 10/11/11


Tagged

clear floats


Versions (?)

clear floats


 / Published in: CSS
 

  1. <div id="outer">
  2. <div id="inner"> <h2>A Column</h2> </div>
  3. <h1>Main Content</h1>
  4. <p>Lorem ipsum</p>
  5. </div>
  6.  
  7. #inner{
  8. width:26%;
  9. float:left;
  10. }
  11.  
  12. #outer{
  13. width:100%;
  14. overflow:auto
  15. }

Report this snippet  

You need to login to post a comment.