Answer the question
In order to leave comments, you need to log in
Is page center alignment correct (Bootstrap 4)?
Hello!
Task: display any element in the center of the page with a certain width of this element (Bootstrap 4).
Decided like this:
<div class="container-fluid h-100">
<div class="row align-items-center h-100">
<div class="col-sm-12">
<div class="row justify-content-center">
<div class="col-4 text-center"> // элемент, и его ширина == col-4
// content
</div>
</div>
</div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
I do not know where you found in .justify-content-center
the .text-center
fourth version.
Works.text-xs-center
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question