I am attempting to create the following layout using the Bootstrap grid system. Within a container <div class="row">
, there are two divs occupying half of the width each (<div1>
and <div2>
). The height of <div1>
will vary based on the content size. Additionally, <div2>
should contain two child divs (<div2-1>
and <div2-2>
), each occupying half of the height of <div1>
. How can I achieve this layout using the Bootstrap grid system?
https://i.sstatic.net/HyBxT.png
I have attempted the following approach, but it is not functioning as expected:
<div class="row">
<div class="col-md-6" id="div1">
Some content...
</div>
<div class="col-md-6" id="div2">
<div id="div2-1" style="height:50%;">
</div>
<div id="div2-2" style="height:50%;">
</div>
</div>
</div>