A Pen by Joel Alejandro Villarreal Bertoldi on CodePen.
Created
September 4, 2020 23:46
-
-
Save joelalejandro/472015b60209fc63a57d726e08a6e529 to your computer and use it in GitHub Desktop.
CSS reutilizable para componer grillas con Flexbox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <section class="contenedor"> | |
| <div class="bloque bloque-izquierda"> | |
| <div class="numero">56</div> | |
| <div class="descripcion-numero">clases</div> | |
| </div> | |
| <div class="bloque bloque-centro"> | |
| cursadas en | |
| </div> | |
| <div class="bloque bloque-derecha"> | |
| <div class="numero">6</div> | |
| <div class="descripcion-numero">meses</div> | |
| </div> | |
| </section> | |
| <section class="contenedor"> | |
| <div class="bloque">Hoy puede ser</div> | |
| <div class="bloque">un gran día</div> | |
| <div class="bloque">Hoy puede ser</div> | |
| <div class="bloque">un gran día</div> | |
| <div class="bloque">Hoy puede ser</div> | |
| <div class="bloque">un gran día</div> | |
| </section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { box-sizing: border-box; } | |
| .contenedor { | |
| display: flex; | |
| align-items: center; | |
| } | |
| .bloque { | |
| flex: 1; | |
| padding: 10px; | |
| } | |
| .descripcion-numero { | |
| font-size: 1rem; | |
| } | |
| .bloque-centro { | |
| text-align: center; | |
| background: none; | |
| margin: 0; | |
| max-width: none; | |
| font-size: 2rem; | |
| } | |
| .numero { font-size: 4rem; } | |
| .bloque-izquierda { text-align: left; } | |
| .bloque-derecha { text-align: right; } | |
| .bloque-izquierda, .bloque-derecha { | |
| max-width: 100px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment