-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathestilos.css
More file actions
117 lines (92 loc) · 1.54 KB
/
estilos.css
File metadata and controls
117 lines (92 loc) · 1.54 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
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
/* Ejemplo de tipografia */
body {
font-size: 16px;
}
p {
font-size: 1.5em;
}
.box {
font-size: 2em;
}
/* Ejemplo de rejilla */
* {
margin: 0px;
padding: 0px;
}
.contenedor {
background-color: red;
width: 80%;
height: 1000px;
margin: 0auto;
padding: 1em;
}
.columna {
background-color: white;
height: 30px;
margin-bottom: 1em;
}
.primera {width: 100%;}
.segunda {width: 50%;}
.tercera {width: 25%;}
.cuarta {width: 75%;}
.quinta {width: 10%;}
/* Ejemplo de media query */
body {
margin:0;
}
.encabezado, .contenido, .contenido-lateral, .pie-pagina {
padding: 1em, 2em;
}
.contenido, .contenido-lateral, .pie-pagina {
float: left;
box-sizing: border-box;
}
.encabezado {
background-color: rgb(247, 220, 22);
height: 100px;
}
.contenido {
width: 60%;
}
.contenido-lateral {
width: 40%;
background-color: rgb(163, 163, 113);
height: 500px;
}
.post {
background-color: rgba(117, 255, 26, 0.46);
height: 100px;
margin-bottom: 1em;
}
.pie-pagina {
width: 100%;
background-color: #000;
height: 50pt;
}
@media screen and (min-width: 780px) and (max-width: 1024px) {
.encabezado {
background-color: rgb(246, 246, 243);
}
.contenido, .contenido-lateral {
width: 50%;
}
}
@media screen and (min-width: 480px) and (max-width: 780px) {
.encabezado {
background-color: rgb(246, 246, 243);
}
.contenido, .contenido-lateral {
width: 100%;
}
}
@media screen and (min-width: 480px) {
.encabezado {
height: 80px;
}
.contenido {
background-color: rgb(250, 250, 183);
}
.contenido, .contenido-lateral {
width: 100%;
}
}