-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
51 lines (46 loc) · 954 Bytes
/
Copy pathstyles.css
File metadata and controls
51 lines (46 loc) · 954 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
48
49
50
51
body{
margin: 0;
display: flex;
justify-content: center;
/* centrar en el medio */
height: 100vh;
align-items: center;
text-align: center;
background: yellow;
font-family: Verdana, Geneva, Tahoma, sans-serif, cursive;
}
.stats-container{
margin: 20px;
border: dotted green;
min-width: 200px;
height: 100px;
position: relative;
padding: 20px;
white-space: nowrap;
}
.icon{
position: absolute;
top: -30px;
/* centrados perfectamente */
left: 50%;
transform: translateX(-50%);
}
.counter{
font-size: 40px;
position: absolute;
left: 50%;
transform: translateX(-50%);
color: green;
}
.stats-container h4{
position: absolute;
bottom: 1px;
left: 50%;
transform: translateX(-50%);
}
/* Responsive, cambia de horizontal a vertical dependiendo el dispositivo */
@media (max-width: 575px) {
body{
flex-direction: column;
}
}