Posted By

picale on 03/13/08


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

basicmagic
vali29


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  

You need to login to post a comment.