-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathmain.css
61 lines (53 loc) · 820 Bytes
/
main.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
/*hola*/
/*usando class*/
.azul{
background-color: blue;
}
/*cambiando colores a las etiquetas*/
h1,h2,p{
color:black;
}
/* le sacamos la linea al enlace*/
a{
color:blue;
text-decoration: none;
}
/*USANDO ID*/
#titulo{
background-color: red;
}
/*Llamando al li siguiente del primero*/
li:first-of-type + li{
color:white;
}
/*llamando al primer hijo de ol*/
ol li:first-child{
color:green;
}
/*llamando al ultimo hijo de ol*/
li:last-child{
color:yellow;
}
.caja{
background-color: yellow;
padding: 1em;
border: 1em solid black;
}
.caja2{
background-color: red;
padding: 1em;
margin-top: 1em;
border:1em dashed black;
text-align: center;
visibility: hidden;
}
.caja3{
background-color: green;
padding: 1em;
margin-top: 1em;
border:1em dashed black;
text-align: center;
}
body{
margin: 0;
}