I have one parent div that contains three divs , and I would like to make them the same height, but it does not work. The first and third div contain each image. The second div contains three divs with content.
Here is the HTML:
<div class="container"> <div class="column1"> <img src="http://placehold.it/300x318"> </div> <div class="column2"> <div class="row1"> <div class="text">UNIKE GUSTAVIANSKE STILMØBLER.</div> <div class="text">VI SELGER HÅNDVERK ETTER 1700-</div> <div class="text">OG 1800-TALLS TRADISJONER.</div> </div> <div class="row2"></div> <div class="row3"> <div class="text"> Åpningstider:<br> Man - Fre 11 -17 Lør 11- 15 </div> </div> </div> <div class="column3"> <img src="http://placehold.it/300x318"> </div> </div>
.container has a css rule display:flex; . When I apply this also to .column1 , .column2 and .column3 , the layout breaks.
I am trying to make the increase and decrease in image height dependent on .column2 . Unfortunately, I have no way to modify HTML or use JS.
Here you can see the JS-Fiddle. I commented on CSS rules.
Many thanks for your help!
source share