-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
47 lines (38 loc) · 750 Bytes
/
Copy pathstyle.css
File metadata and controls
47 lines (38 loc) · 750 Bytes
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
/* Pseudo Classes -> change state of a specific element */
/* one colon means class */
/* :root {
color: red;
} */
h1:hover {
color:red;
}
a:visited {
color: green;
}
.list-example-1 p:last-child {
color: blue;
}
.list-example-2 p:nth-child(2n+1) {
color: pink;
}
/* Pseudo Elements -> change part of the element itself */
/* two colons means element */
.element-1::first-line {
background-color: yellow;
color: red;
}
.element-2::first-letter {
background-color: green;
color: white;
}
.element-3::selection {
background-color: green;
color: blue;
}
.element-4::before {
/*content: "This is a paragraph - "*/
content: attr(daniel);
}
.element-4::after {
content: url(img/image.png);
}