Vertical Centering


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



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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.