-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path04_selecteurs.css
More file actions
71 lines (51 loc) · 1.19 KB
/
04_selecteurs.css
File metadata and controls
71 lines (51 loc) · 1.19 KB
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
body{
font-size: 25px;/*taille de police: 25 pixels*/
}
h1{
background-color: darkslategray;
color: white;
}
section p{
color: red;/*tous les <p> à l'intérieur de la balise <section>*/
}
section p:first-child{
color: darkblue;/*premier <p>*/
}
section p:last-child{
color:lightgreen;/*dernier <p>*/
}
section p:nth-child(even){
color:lightblue;/*les <p> pairs*/
}
section p:nth-child(odd){
color:brown;/*les <p> impairs*/
}
section p:nth-child(3), section p:nth-child(10){
color: orange;/*les <p> 3 et 10*/
}
.zone1{/*Class donc avant son nom je mets un . */
color: #4046A4;
}
.zone2{
color: #406EA4;
}
.zone3{
color: #4046A4;
}
.lime{
color: #40A469;
}
#zone3{/*ID donc avant son nom je mets un # */
background-color: #40A470;
}
#zone3:after{/*rajouter contenu après l'ID zone3 */
content: "rajouter après";
}
#zone3:before{/*ID donc avant son nom je mets un # */
content: "rajouter avant";
background-color: cyan;
}
li:nth-child(2){
background-color: darkred;
color: white;
}