-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (31 loc) · 1.17 KB
/
index.html
File metadata and controls
31 lines (31 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
<title>CSS Has() property</title>
<link rel="stylesheet" href="style.css">
</head>
<body class="container">
<header>
<h1>CSS :has() Selector 🎉</h1>
</header>
<main>
<section class="section-1">
<h2>Select all the cards (except for me), when hovering on me</h2>
<div class="cards grid">
<div class="card">Lorem ipsum dolor sit, amet consectetur adipisicing elit?</div>
<div class="card">Lorem ipsum dolor sit, amet consectetur adipisicing elit?</div>
<div class="card">Lorem ipsum dolor sit, amet consectetur adipisicing elit?</div>
<div class="card">Lorem ipsum dolor sit, amet consectetur adipisicing elit?</div>
</div>
</section>
<section>
<h2>Select and hide section 1 when my input is checked</h2>
<input class="custom-checkbox" type="checkbox" id="hide-content">
<label for="hide-content">Hide the page content</label>
</section>
</main>
</body>
</html>