mirror of
https://gitlab.com/tutorial-java-rafa-munoz/tutorial-java-2024-25/LMSGI-2024-25.git
synced 2025-11-09 09:57:39 +01:00
40 lines
1.1 KiB
CSS
40 lines
1.1 KiB
CSS
/* Diferentes navegadores utilizan diferentes márgenes por defecto */
|
|
body{
|
|
margin:0; /* Igualo los márgenes por defecto de cualquier navegador*/
|
|
}
|
|
|
|
/* Contenedor principal. Tendrá Flexbox */
|
|
.container {
|
|
display: flex; /* flex es igual a inline-flex. Los elementos dentro de un flex son flex-items */
|
|
border: 10px solid red;
|
|
box-sizing: border-box; /* Unifica en un único valor de cada div los siguientes: margin, padding y border*/
|
|
min-height: 100vh;
|
|
align-items: baseline;
|
|
}
|
|
|
|
/* Cada box tiene unas propiedades, son simplemente estéticas*/
|
|
.box {
|
|
color: #fff;
|
|
font-size: 100px;
|
|
text-align: center;
|
|
padding: 10px;
|
|
text-shadow:4px 4px 0 rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* Colores de cada box */
|
|
.box1 { background:#1abc9c;}
|
|
.box2 { background:#3498db;}
|
|
.box3 { background:#9b59b6;}
|
|
.box4 { background:#34495e;}
|
|
.box5 { background:#f1c40f;}
|
|
.box6 { background:#e67e22;}
|
|
.box7 { background:#e74c3c;}
|
|
.box8 { background:#bdc3c7;}
|
|
.box9 { background:#2ecc71;}
|
|
.box10 { background:#16a085;}
|
|
|
|
.box1 { font-size: 30px; }
|
|
.box3 { font-size: 130px; }
|
|
.box4 { font-size: 200px; }
|
|
.box5 { font-size: 10px; }
|
|
.box10 { font-size: 90px; } |