-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
36 lines (33 loc) · 737 Bytes
/
Copy pathstyle.css
File metadata and controls
36 lines (33 loc) · 737 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
/**Una regla css consta de dos partes:
1) el selector
2) el bloque de declaraciones
atributo:valor*/
/* el @import url() es mala práctica porque es bloqueante a la hora que el navegador lee los documentos*/
@import url('otro-style.css');
html {
scroll-behavior: smooth;;
}
body {
background-color:#f005;
margin: 0;
}
a {
margin: 3px;
}
h2:target{color: #005;}
.css-curso {color:#00f;}
/* El estilo (style) en línea es el que predomina; le sigue el estilo interno, y el final es el externo */
h1{color: red;
border: 3px;
border-color: red;
border-style: solid;
}
#box{color: #f50;
border: 3px;
border-style: solid;
border-color: blue;
width: 200px;
height: 200px;
}
h2{color: #f00;}
/* */