Css İle Dikey Ortalama

<!DOCTYPE>
<html>
<head>
 <title>css dikey ortalama</title>
 <meta charset="utf-8" />
 <style type="text/css">
 .box {
  width: 500px;
  height: 300px;
  background: #111;
  color: #fff;
  display: table
 }
 .box p {
  display: table-cell;
  vertical-align: middle;
  text-align: center
 }
 </style>
</head>
<body>

<div class="box">
 <p>
  burası ortalanacak..
 </p>
</div>

</body>
</html>

Hiç yorum yok:

Yorum Gönder