I have two Bootstrap columns within a row, thusly:
<div class="row">
<div class="col-xs-6 mainBox">
<h1>Heading</h1>
<h2>Sub Heading</h2>
</div>
<div class="col-xs-6 mainBox buttonBox">
<button class="btn btn-primary">Button</button>
</div>
</div>
I want the second column to be bottom aligned vertically within the row. How do I achieve this?
Here is a demo fiddle:
http://jsfiddle.net/RationalGeek/6pYhx/
Try using position: absolute;
and setting a bottom
of 0
:
.row {
position: relative;
}
.mainBox {
border: solid thin black;
}
.buttonBox {
position: absolute;
bottom:0;
right:0;
}
http://jsfiddle.net/6pYhx/3/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With