dynamic height inner and outer div


/ Published in: HTML
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.