Is there a way to add some extra space between the H3-1
div and the H3-2
div?
- Ideally, I would like to achieve this without using custom
CSS
, but if necessary, that's okay too. - I'd prefer to stick with the
col-sm-6
class instead of usingcol-sm-5
withoffset
as it creates more space than needed. - The
ml-auto
andmr-auto
classes are important for centering columns, especially when the number of columns is dynamic.
@import url(https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css);
<div class="container">
<div class="row row-eq-height">
<div class="col-sm-6 border align-top ml-auto mr-auto mt-3 bg-light">
<div class="m-0 p-2">
<h3>H3-1</h3>
<p>sad ajsdha sjhd ajshdjashd jashdj ashdj ashd jashd jashdj ashdj ashdj ashdj ashdjas dashdj asdhjashd ashd as</p>
</div>
</div>
<div class="col-sm-6 border align-top ml-auto mr-auto mt-3 bg-light">
<div class="m-0 p-2">
<h3>H3-2</h3>
<p>asjd asjdh asjdhasj hasjdh jshd jashjas dh jasdha jdh jashdj ashdj shdj ashdj </p>
</div>
</div>
<div class="col-sm-6 border align-top ml-auto mr-auto mt-3 bg-light">
<div class="m-0">
<h3>H3-3</h3>
<p>asd asd asd a</p>
</div>
</div>
</div>
</div>