I am trying to add 100% height to my flex childs. it's not working. I know that i give direction as row but some time i have only 2 child where i need to set 100% height.
Is it possible? if so what is the correct way to do it?
here is my try:
*{
  padding:0;
  margin:0;
}
.parent{
  display:flex;
  height:100%;
  background:lightgray;
  border:1px solid red;
  flex-direction:row;
}
.child1{
  flex:0 0 30%;
  overflow-y: auto;
  background:lightblue;
}
.child2{
  flex:0 0 70%;
  overflow-y: auto;
  background:lightyellow;
}<div class="parent">
  <div class="child1">child1</div>
  <div class="child2">child2</div>
</div> 
    