Posted By

picale on 03/13/08

Tagged

Viewed 0 times

Vertical centering with line-height


/ Published in: CSS


  1. div{
  2. height:100px;
  3. }
  4. div *{
  5. margin:0;
  6. }
  7. div p{
  8. line-height:100px;
  9. }
  10.  
  11. <p>Content here</p>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.