css 배경색 변경

css 배경색 변경

QA

css 배경색 변경

본문

3067929571_1675016560.1586.png회색 배경위에 하얀색 배경 어떻게 삽입해야 하는지 혹시 여쭤바도 괜찮을까요? position을 쓰면 요소들이 전부다 겹쳐져서 어떻게 하는지 여쭤보려고 합니다

이 질문에 댓글 쓰기 :

답변 1


<!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>
답변을 작성하시기 전에 로그인 해주세요.
전체 123,642 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT