tipos secundarios primarios oligoelementos los funciones funcion ejemplos definicion bioelementos html css css3 flexbox css-grid

html - secundarios - funcion de los bioelementos



AlineaciĆ³n de los elementos secundarios de diferentes contenedores principales (1)

Estoy tratando de alinear verticalmente los elementos de altura variable en los contenedores, es decir, el primer elemento de cada contenedor se alinea verticalmente entre sí, el segundo elemento de cada contenedor se alinea verticalmente entre sí, etc., etc.

Estoy usando flexbox pero no estoy seguro si esto es posible? ¿O es posible usar CSS Grid?

Resultado deseado

Ver la demostración en la que aún no he conseguido que funcione.

main { display: flex; flex-wrap: wrap; } .container { background: grey; margin: 0 10px 20px; padding: 10px; width: 200px; } .top { background: red; } .middle { background: blue; } .bottom { background: green; }

<main> <div class="container"> <div class="top">Some text here, Some text here, Some text here</div> <div class="middle">And some here, And some here, And some here, And some here, And some here, And some here</div> <div class="bottom">And a little here too</div> </div> <div class="container"> <div class="top">Some text here, Some text here</div> <div class="middle">And some here, And some here, And some here, And some here, And some here, And some here, And some here, And some here, And some here</div> <div class="bottom">And a little here too, And a little here too</div> </div> <div class="container"> <div class="top">Some text here, Some text here, Some text here, Some text here, Some text here</div> <div class="middle">And some here</div> <div class="bottom">And a little here too</div> </div> <div class="container"> <div class="top">Some text here, Some text here, Some text here</div> <div class="middle">And some here, And some here, And some here, And some here, And some here, And some here</div> <div class="bottom">And a little here too</div> </div> <div class="container"> <div class="top">Some text here, Some text here, Some text here</div> <div class="middle">And some here, And some here, And some here, And some here, And some here, And some here</div> <div class="bottom">And a little here too</div> </div> <div class="container"> <div class="top">Some text here, Some text here, Some text here</div> <div class="middle">And some here, And some here, And some here, And some here, And some here, And some here</div> <div class="bottom">And a little here too</div> </div> <div class="container"> <div class="top">Some text here, Some text here, Some text here</div> <div class="middle">And some here, And some here, And some here, And some here, And some here, And some here</div> <div class="bottom">And a little here too</div> </div> </main>


Prueba esto, tal vez te ayude

.container { background: grey; margin: 0 10px 20px; padding: 10px; width: 200px; display: flex; flex-direction: column; justify-content: center; }

Demostración en vivo - http://codepen.io/anon/pen/oZxaja?editors=1100