How to vertically center a text in a column (bootstrap 4)?
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: <link href=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css” rel=”stylesheet”/> <div class=”container”> <div class=”row”> <div class=”col-xs-6 my-auto”> <span>Text to center</span> </div> <div class=”col-xs-6″> <h1>Hello</h1> <h1>Hello</h1> <h1>Hello</h1> </div> </div> … Read more