I am working on a layout that consists of two columns in a row with col-6
, and a jumbotron. Here is the code snippet I have:
<div class="jumbotron text-left" style="background-image: url(https://mdbootstrap.com/img/Photos/Others/gradient1.jpg); background-size: cover;">
<h1>Test</h1>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<p class="text-center square">TEST</p>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<h3>Lorem ipsum dolor sit amet, consectetur adipisicing elit </h3>
</div>
<div class="col-sm-6">
<h3>test</h3>
</div>
</div>
</div>
Here is the styling used:
.square {
height: 50px;
width: 50px;
background-color: #9FB6A6;
border-radius: 3px;
}
This is the desired outcome:
https://i.sstatic.net/xTVdT.png
My attempted solutions include using the text-center
class and adjusting the z-index
. However, I am unable to position the square div over the jumbotron as shown in the reference image.
For further clarity, here is a link to a jsfiddle showcasing the current behavior:
https://jsfiddle.net/rmjy5pch/
I would appreciate guidance on how to achieve the desired layout.