html - how to parallel increase two div height if they are in one container -
this question has answer here:
- css - equal height columns? 9 answers
how make both div heights equal css. want see side side these both divs.
<div>how make 2 div heights equal css.how make 2 div heights equal css.</div>
or
<div>how make 2 div heights equal css. how make 2 div heights equal css. how make 2 div heights equal css. how make 2 div heights equal css. how make 2 div heights equal css.</div>
assuming have divs side side, can use:
display:flex
your html is:
<div class="row"> <div class="col">how make 2 div heights equal css.how make 2 div heights equal css.</div> <div class="col">how make 2 div heights equal css.how make 2 div heights equal css.how make 2 div heights equal css.how make 2 div heights equal css.how make 2 div heights equal css.</div> </div>
the css be:
.row { display: flex; /* equal height of children */ } .col{ border: 1px solid black; flex:1; // use if want width equal }
see fiddle: http://jsfiddle.net/9qzzu1c7/
Comments
Post a Comment