css 배경색 변경
회색 배경위에 하얀색 배경 어떻게 삽입해야 하는지 혹시 여쭤바도 괜찮을까요? position을 쓰면 요소들이 전부다 겹쳐져서 어떻게 하는지 여쭤보려고 합니다
|
답변 1개 / 댓글 1개
2023-01-30 (월) 03:46:47
Copy
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>bg</title>
<style>
html, body { width: 100%; height: 100%; }
body { background-color: rgb(67, 190, 249); }
.depth { width: 80%; height: 80%; }
.depth_00 { background-color: rgb(67, 170, 249); }
.depth_01 { background-color: rgb(67, 150, 249); }
.depth_02 { background-color: rgb(67, 130, 249); }
</style>
</head>
<body>
<div class="depth depth_00">depth_00
<div class="depth depth_01">depth_01
<div class="depth depth_02">depth_02
</div>
</div>
</div>
</body>
</html>
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.