-
Notifications
You must be signed in to change notification settings - Fork 1
/
N th CHILD PSEUDO SELECTORS.html
63 lines (53 loc) · 1.56 KB
/
N th CHILD PSEUDO SELECTORS.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>N TH CHILD IN PSEUDO SELECTORS</title>
</head>
<style>
li:nth-child(2n+0){
background-color: chartreuse;
}
li:nth-child(3n+0){
font-weight: bold;
font-size: 50px;
}
li:nth-child(17){
border: 2px solid brown;
}
/*
li:nth-child(even){
visibility: hidden;
}
li:nth-child(odd){
visibility: hidden;
} */
</style>
<body>
<header>
<ul type="circle">
<li class="box" id="box1">one</li>
<li class="box" id="box2">two</li>
<li class="box" id="box3">three</li>
<li class="box" id="box4">four</li>
<li class="box" id="box5">five</li>
<li class="box" id="box6">six</li>
<li class="box" id="box7">seven</li>
<li class="box" id="box8">eight</li>
<li class="box" id="box9">nine</li>
<li class="box" id="box10">ten</li>
<li class="box" id="box11">eleven</li>
<li class="box" id="box12">tweleve</li>
<li class="box" id="box13">thirteen</li>
<li class="box" id="box14">fourteen</li>
<li class="box" id="box15">fifteen</li>
<li class="box" id="box16">sixteen</li>
<li class="box" id="box17">seventeen</li>
<li class="box" id="box18">eightteen</li>
<li class="box" id="box19">nineteen</li>
<li class="box" id="box20">twenty</li>
</ul>
</header>
</body>
</html>