I have three columns and inside each one there is an element with the class text-container
. I want them all to be the same height as the tallest one, without using JavaScript.
This is the code:
<div class="column">
<!--more elements-->
<div class="text-container">
<!--some text-->
</div>
</div>
<div class="column">
<!--more elements-->
<div class="text-container">
<!--some longer text-->
</div>
</div>
<div class="column">
<!--more elements-->
<div class="text-container">
<!--some shorter text-->
</div>
</div>
Is there a way to make text-container
the same height without using JavaScript? I know that flexbox can do the trick but that is if all the elements are inside the flexbox
element..