Utilizing bootstrap here. Currently trying to center the h1
element within the div
, but so far I have been unsuccessful. It consistently remains aligned to the left. Attempts have included using bootstrap's center-block
helper class, as well as the float: none, margin: 0 auto
approach, without success.
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="row">
...
<div class="col-md-8">
<div id="some-div" class="row">
<p>Some text</p>
</div>
</div>
...
</div>
</div>
</nav>
Is there a specific method within bootstrap that I am overlooking in this scenario? Perhaps another helper class or technique that will achieve the desired result? Or is it simply not supported by bootstrap?