<!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>가로로 사각형들을 등분하기</title>
<style>
.box{border: 2px dotted black; padding: 10px;}
.top{background-color:coral; height: 200px; margin-bottom:10px;}
.bottom{background-color: cornflowerblue; height: 200px;}
</style>
</head>
<body>
<div class="box">
<div class="top"></div>
<div class="bottom"></div>
</div>
</body>
</html>
'괴발개발 > Html+CSS' 카테고리의 다른 글
CSS_z-index (0) | 2021.06.12 |
---|---|
CSS_홈페이지 메인페이지 등분하기 (0) | 2021.06.12 |
CSS_크기가 불규칙한 박스 4등분하기 (0) | 2021.06.11 |
CSS_박스 나란히 삼등분하기 (0) | 2021.06.10 |
CSS_박스 안에 박스 이등분 나란히 배열 (0) | 2021.06.10 |