-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
86 lines (77 loc) · 1.54 KB
/
style.css
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
h1{
color:darkgoldenrod;
}
h1:hover{
color: blueviolet;
font-size:50px;
background-color: crimson;
}
input:focus{
color:crimson;
font-size:50px;
}
li:first-child{
background-color: cyan;
}
li:last-child{
background-color: darkblue;
}
li:nth-child(2n){
color:darkgreen;
}
a:visited{
color: crimson;
}
h1::before{
content: "apple";
background-color: yellow;
color:aqua;
font-size: 20px;
}
h1::after{
content: "fruit";
background-color: yellow;
color:blueviolet;
font-size: 15px;
}
body {
counter-reset: section; /* Set a counter named 'section', and its initial value is 0. */
}
p::before {
counter-increment: section; /* Increment the value of section counter by 1 */
content: "crush" counter(section) ": "; /* Display the word 'Section ', the value of
section counter, and a colon before the content
of each h3 */
}
P::before{
content:"😍";
}
/*possition html*/
.container {
background-color: chartreuse;
}
div{
width:100px;
height:100Px;
}
#first{
background-color: black;
position: relative;
left:10px;
top:0px;
}
#second{
background-color: crimson;
position: absolute;
}
#third{
background-color: cyan;
position: static;
}
/*specity*/
.name{
color:green;
}
#highlight{
color:red;
}