Hey I'm new to html and css, I want to do something but I can't find anywhere how to do it, or maybe I'm not understanding well, I made a codepen with an example: https://codepen.io/chileseco/pen/rNemRoZ and this is what I need: http://prntscr.com/u7aw4v or I need more than just flex display?
Thanks for your attention!
.parent{
display: flex;
background-color: rgb(77, 77, 255);
}
.child1{
background-color: rgb(240, 104, 104);
}
.child2{
background-color: rgb(115, 243, 115);
}
<div class="parent">
<div class="child1">
<h1>Child 1</h1>
</div>
<div class="child2">
<h1>Child 2</h1>
</div>
</div>