Vertically and horizontally center


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

Am Beispiel einer Grafik


Copy this code and paste it in your HTML
  1. img {
  2. position: absolute;
  3. top: 0;
  4. right: 0;
  5. bottom: 0;
  6. left: 0;
  7. width: 297px;
  8. height: 238px;
  9. margin: auto;
  10. border: 0;
  11. }

URL: http://testing.fallend.at/html/centered.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.