/* 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: flex-start; } /* Cada box tiene unas propiedades, son simplemente estéticas*/ .box { color: #fff; font-size: 100px; text-align: center; padding: 0px; text-shadow:4px 4px 0 rgba(0,0,0,0.1); flex: 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;} .box2 { padding-bottom: 200px; align-self: stretch; } .box6 { padding-bottom: 0; align-self: center; } .box9 { padding-bottom: 50px; align-self: flex-end; }