I have this layout and css
<div class="container-fluid header">
<div class="row text-center">
<div class="col-md-6 red">
<h1>First</h1>
</div>
<div class="col-md-6 red">
<h1>Second</h1>
</div>
</div>
</div>
css
.header {
background-color: blue;
}
.col-md-6 {
min-height: 300px;
}
.red {
border:2px solid red;
}
i gave min-height on col 6 because i want to have extra space there.I center the text of the content of each column with text-center on the row. But i can't find a way to center the content of the columns vertically.
I tried for example
<div class="container-fluid header">
<div class="row text-center d-flex align-content-center">
<div class="col-md-6 red align-self-center">
<h1>First</h1>
</div>
<div class="col-md-6 red align-self-center">
<h1>Second</h1>
</div>
</div>
</div>
but without success