Menu
CoddyTech

Thanh bên II

Bài học 7 trên 13 trong khóa học Thanh bên | Dự án front-end của Coddy.

challenge icon

Thử thách

Dễ

Lớp đích 'sidebar':

1. Đặt top và right thành 0.

2. Đặt độ mờ nền thành 10 pixel.

Tự làm thử

<!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>

Tất cả bài học trong Thanh bên | Dự án front-end

Tự luyện tập: Playground Web