Vertical align Content


/ Published in: HTML
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. <div id="floater">
  5. <div id="content">
  6. Content goes here
  7. </div>
  8. </div>

URL: http://blog.themeforest.net/tutorials/vertical-centering-with-css/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.