Posted By

blpgirl on 05/31/10


Tagged


Versions (?)

dynamic height inner and outer div


 / Published in: HTML
 

pa que si el tamaƱo del inner div es mayor al del outer, este se agrandde en vez de salirse el inner

  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.  
  8. en css
  9. #inner{
  10. width:26%;
  11. float:left;
  12. }
  13. #outer{
  14. width:100%;
  15. overflow:auto
  16. }

Report this snippet  

You need to login to post a comment.