I have 2 floating divs with JS dynamic content. I need to make them to always match eachother height - perfectly to fill 100% of parent height. How to do this? I know it will be probably marked as duplicate, but I couldnt fit any solution into my current situation (from indeed plenty of results)
.parent {
  background-color: red;
  width: 60%;
  float: left;
  margin-bottom: 10px;
}
.left {
  float: left;
  width: 50%;
  background-color: green;
  height: 100%;
}
.right {
  float: left;
  width: 50%;
  background-color: purple;
  height: 100%;
}<div class="parent">
  <div class="left">
    some
    <br/>conten
    <br/>more
    <br/>content
    <br/> some
    <br/>conten
    <br/>more
    <br/>content
    <br/> some
    <br/>conten
    <br/>more
    <br/>content
    <br/>
  </div>
  <div class="right">
    some other content
    <br/> but less lines
    <br/> need to expand this as well
    <br/> to match the height of left div
  </div>
</div>
<div class="parent">
  <div class="left">
    some other content
    <br/> but less lines
    <br/> need to expand this as well
    <br/> to match the height of left div
  </div>
  <div class="right">
    some
    <br/>conten
    <br/>more
    <br/>content
    <br/> some
    <br/>conten
    <br/>more
    <br/>content
    <br/> some
    <br/>conten
    <br/>more
    <br/>content
    <br/>
  </div>
</div> 
     
     
     
    