I would like to know why clm1 with height: 100%; does not resize the div when display flex is being used.
How to fix this problem, I need the div resize as clm2 content? Why does not work my version?
I need the orange div to matchs the size of the blue div.
#container {
background-color: red;
width: 500px;
height: 400px;
}
#flex {
background-color: yellow;
display: flex;
flex-direction: row;
}
#clm1 {
background-color: orange;
width: 20%;
height: 100%;
}
#clm2 {
background-color: blue;
width: 80%;
}
<div id="container">
<div id="flex">
<div id="clm1">
1
</div>
<div id="clm2">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has
survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum
</div>
</div>
</div>