Menu
Coddy logo textTech

사이드바 콘텐츠

Coddy의 사이드바 | 프론트엔드 프로젝트 코스 레슨 — 13개 중 9번째.

challenge icon

챌린지

쉬움

'sidebar' 클래스 내의 대상 paragraph 요소:

1. 색상을 설정합니다 ('white' 제외).

2. 원하는 대로 패딩(padding)을 추가합니다.

3. 커서(cursor)를 'pointer'로 설정합니다.

4. 원하는 불투명도(opacity)를 설정하는 hover 효과를 추가합니다 (1 제외).

직접 해보기

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
    <title>Sidebar</title>
</head>
    <body>
        <button id="openSidebarBtn">Open</button>
        <div id="sidebar" class="sidebar">
            <button id="closeSidebarBtn">Close</button>
            <p>Home</p>
            <p>About</p>
            <p>Services</p>
            <p>Contact</p>
        </div>
        <script src="script.js"></script>
    </body>
</html>

사이드바 | 프론트엔드 프로젝트의 모든 레슨