사이드바 콘텐츠
Coddy의 사이드바 | 프론트엔드 프로젝트 코스 레슨 — 13개 중 4번째.
챌린지
쉬움1. 'sidebar' 내부의 'Close' 버튼 아래에 'Home', 'About', 'Services', 'Contact' 텍스트를 포함하는 4개의 paragraph 태그를 생성하세요.
2. CSS 파일에서 body 태그의 margin을 0으로 설정하세요.
직접 해보기
<!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>
<!-- Write HTML code here -->
</div>
<script src="script.js"></script>
</body>
</html>사이드바 | 프론트엔드 프로젝트의 모든 레슨
1소개
무엇을 만들게 될까요?