Posted By

jfleblanc on 08/03/09


Tagged

css positionning


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

vali29
jmiller
silentbob84


Vertical Centering


 / Published in: CSS
 

  1. #floater {float:left; height:50%; margin-bottom:-120px;}
  2. #content {clear:both; height:240px; position:relative;}
  3.  
  4. --- HTML ----
  5.  
  6. <div id="floater">
  7. <div id="content">
  8. Content here
  9. </div>
  10. </div>

Report this snippet  

You need to login to post a comment.