Skip to content

Commit d720e26

Browse files
committed
Video 35 Completed
1 parent 34c53eb commit d720e26

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

Video 35/index.html

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>More on CSS Selectors</title>
8+
<style>
9+
/* .box:first-child{
10+
background-color: red;
11+
} */
12+
13+
/* .box::first-line{
14+
color: yellow;
15+
} */
16+
17+
/* .boxes *{
18+
color: blue;
19+
border: 2px solid black;
20+
}
21+
22+
p, a, .box, [data-color="primary"]{
23+
padding-top: 45px;
24+
} */
25+
26+
/* .box:nth-child(odd){
27+
background-color: blue;
28+
} */
29+
30+
/* .box:nth-last-child(2){
31+
background-color: red;
32+
} */
33+
34+
.boxes::before {
35+
content: "Harry is good";
36+
color: blue;
37+
}
38+
39+
.boxes::after {
40+
content: "Sigma course is also good";
41+
color: red;
42+
}
43+
44+
::selection {
45+
background-color: black;
46+
color: aqua;
47+
}
48+
49+
.box::first-letter {
50+
color: peru;
51+
font-size: 45px;
52+
}
53+
54+
input::placeholder {
55+
color: rgb(84, 84, 88);
56+
}
57+
</style>
58+
</head>
59+
60+
<body>
61+
<div class="boxes">
62+
<div data-color="primary" class="box">I am first box</div>
63+
<div class="box">Hey I am a box</div>
64+
<div class="box">Hey I am a box</div>
65+
<input type="text" placeholder="Type your name here">
66+
</div>
67+
</body>
68+
69+
</html>

0 commit comments

Comments
 (0)