I'm trying to use foundation css flexbox in order to make the layout as in the first picture. We I try I get terrible results. When I put content in the grid boxes the content makes the grid boxes larger or smaller and don't match the nice layout I want.
<div class="row full-width">
<div class="column pl0 pr0 small-12 medium-8">
<div class="hero inverted full-height"
style="background-image: url(pic);">
<div class="row">
<div class="column small-12">
<div class="hero-content">
<h1>
<small class="preHeading">Heading</small>
Text
</h1>
<p class="hero-text text-center">
A long text</p>
<div class="text-center">
<a href="#" class="button button-white button-large"
style="">
Find products
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="column small-12 medium-4 grid-x">
<div class="row">
<div class="column small-6 medium-12 pr0 pb2">
<div class="hero inverted shrink" style="background-image: url(pic);">
<div class="row">
<div class="column small-12">
<div class="hero-content">
<h3>
Text
</h3>
<div class="text-center">
<a href="#"
class="button button-white button-large" style="">
Find products
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="column small-6 medium-12 pr0">
<div class="hero inverted shrink" style="background-image: url(pic);">
<div class="row">
<div class="column small-12">
<div class="hero-content">
<h3>
Text
</h3>
<div class="text-center">
<a href="#"
class="button button-white button-large" style="">
Find products
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
I want this
Wrong result 1
Wrong result 2
Do anyone have any suggestion on how to to this please?