forked from rohan1917/FSWDT-JAN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathday-14-cssPseudoClassesAndPseudoElements.css
127 lines (104 loc) · 1.88 KB
/
day-14-cssPseudoClassesAndPseudoElements.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/*
Hover State:
>> Pointing the cursor on the button
*/
/* button:hover{
color: white;
background-color: black;
cursor: pointer;
} */
/*
Active State:
>> When we we hold left key of the mouse it will be in active statae
*/
/* button:active{
border: 10px solid red;
} */
/*
Focus State:
>> Indicating you already visisted that button / or opened or clicked the btn
*/
/* button:focus{
background-color: pink;
color: white;
} */
/* anchor un-visisted link state */
/* a:link{
color: red;
} */
/* a:visited{
color: green;
} */
/* a:hover{
cursor: progress;
} */
/* span{
padding: 8px;
margin: 8px;
background-color: yellow;
} */
/* First Child */
/* span:first-child{
background-color: red;
} */
/* Last Child */
/* span:last-child{
background-color: red;
} */
/* nth child (eg 3rd child) */
/* span:nth-child(3){
background-color: pink;
} */
/* styles for even child number */
/* span:nth-child(even){
background-color: aqua;
} */
/* span:nth-child(odd){
background-color: aqua;
} */
/* Psuedo Elements :: before */
/* h1::before{
content: "hello ";
background-color: black;
color: white;
} */
/* Psuedo Elements :: after */
/* h1::after{
content: " g'morning";
} */
.shape{
margin: 100px;
width: 150px;
height: 150px;
background-color: black;
border-radius: 50%;
position: relative;
}
.shape::before{
content: " ";
width: 80px;
height: 80px;
background-color: yellow;
position: absolute;
top: 0;
left: 0;
border-radius: 50%;
}
/* px,%,em,rem,vh,vw */
.shape::after{
content: " ";
width: 80px;
height: 80px;
background-color: yellow;
position: absolute;
bottom: 0;
right: 0;
border-radius: 50%;
}
/*
>> Flex Box
>> Animations
>> Git Sessions
>> Static Projects (HTML, CSS)
>> ....
*/