deadCenter a div in short


/ Published in: CSS

How to center a div horizontable and vertical ... in short code.


Copy this code and paste it in your HTML
  1. #deadCenter {
  2. width: 700px;
  3. height: 450px;
  4.  
  5. margin: -225px 0 0 -350px;
  6. position: absolute;
  7. top: 50%;
  8. left: 50%;
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.