margin-collapsing 3

유석현(SeokHyun Yu)·2022년 11월 14일
0

CSS

목록 보기
17/32
post-thumbnail
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      #empty {
        margin-top: 50px;
        margin-bottom: 100px;
        border: 1px solid tomato;
      }
      #normal {
        background-color: powderblue;
        margin-top: 100x;
      }
    </style>
  </head>
  <body>
    <div id="empty"></div>
    <div id="normal">normal</div>
  </body>
</html>

profile
Backend Engineer

0개의 댓글