I have two rows written in a sequence. I am getting an output like this.Stackblitz link
I need to get that RHS
in the top right corner at the same level as LHS. Since I have simplified my actual question, please do not suggest having both LHS
div and RHS
div in the same class="row"
. I need to keep them seperate in different class="rows"
. I simply want RHS
div to be at the top irrespective of LHS
div.
<div class="row">
<div class="col-md-9">
LHS DIV
This is a div which can have a dynamic height.
</div>
</div>
<div class="row" style="margin-top: inherit;">
<div class="col-md-9">
</div>
<div class="col-md-3">RHS DIV</div>
</div>
PS:
- I tried using
margin-top: -30%
; but the problem is this percentage is dependent on the height of the LHS
div.
- Both
LHS
and RHS
divs can be of variable height. Any help is welcomed.
question from:
https://stackoverflow.com/questions/65600843/maintaining-dynamic-heights-in-bootstrap-column-divs 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…