I'm a bit puzzled about how to center the h2
element. This is my first time using Bootstrap 4, transitioning from Bootstrap 3, so maybe there's a difference that I'm not aware of? Any guidance on this matter would be greatly appreciated. Thank you!
<nav class="container navbar navbar-expand-md justify-content-end">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Gallery</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
</ul>
</nav>
<br>
<div class="container row introduction justify-content-center">
<div class="col-md-6">
<h2>Customizable DIY projects<br>for all your home decor<br>needs!</h2>
</div>
</div>
https://i.sstatic.net/Mz4mh.jpg
It seems like the text is not properly centered and I'm unsure how to resolve this issue. Could it be related to the Bootstrap version I'm using? I'm not entirely certain.