How to vertically center a text in a column (bootstrap 4)? The structure is basic, see:
<div class="row">
<div class="col-md-6">
<span>Text to center</span>
</div
</div>
Ty guys!
How to vertically center a text in a column (bootstrap 4)? The structure is basic, see:
<div class="row">
<div class="col-md-6">
<span>Text to center</span>
</div
</div>
Ty guys!
You can add the my-auto class to the parent
<div class="col-md-6">
to achieve this. This class sets automatic margins on the y-axis, see the link above for more details.It would look like this:
You might be tempted to use vertical alignment utilities but these will only work on inline, inline-block, inline-table, and table cell elements.
Another option is to use the flexbox utilities..
http://www.codeply.com/go/oy8H1bUOL1
Also, there are several other Bootstrap vertical centering options explained in my other answer.