Is there a way to horizontally center a div
using bootstrap 5? I want the div
to be positioned in the middle, between the content above it and the end of the screen.
I attempted the following:
<div>some content</div>
<div class="d-flex flex-column min-vh-100 justify-content-center align-items-center">
<div>div that needs centering</div>
</div>
However, this method seems to elongate the page and the div
does not appear centered as intended.