I'm grappling with a simple issue and could use some help to resolve it.
Utilizing bootstrap, below is my CSS and div structure. How can I achieve an overlap of DIV 1
, DIV 2
, and DIV 3
? Essentially, I want to position them on the same level, one behind the other.
.sub{
position: relative;
background-color: lime;
}
.og{
margin-top: 15px;
position: relative;
text-align: center;
}
#itmHolder{
position: absolute;
}
HTML:
<div class="row">
<div class="col-xs-6 col-xs-offset-3 col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3 og">
<div class="itmHolder">
<div class="sub">DIV 1</div>
<div class="sub">DIV 2</div>
<div class="sub">DIV 3</div>
</div>
<div class="itmHolder">
<button type="button" class="normalBtn">Button</button>
</div>
</div>
</div>
Desired outcome (DIV 1
and DIV 2
positioned behind DIV 3
):