Posted By

Savio on 02/23/11


Tagged


Versions (?)

Prevent margin collapsing


 / Published in: CSS
 

Actually this is very well known. Just added it cause I always forget this.

  1. <div id="top">
  2. <div id="bottom">
  3.  
  4. add to css:
  5.  
  6. top {
  7. overflow: hidden;
  8. or overflow: auto;
  9. }

Report this snippet  

You need to login to post a comment.