Having modified the bootstrap.min.css file in my Bootstrap v4.3.1, I replaced all instances of display:flex;
with display:block;
.
However, after making this change, I noticed that the rows were no longer centered, even when using justify-content-center
. This is because the row class is now a block element instead of a flex element.
How can I center the content of a row when it's a block?
<div class="container">
<div class="row">
<div class="col-sm">
1
</div>
<div class="col-sm">
2
</div>
<div class="col-sm">
3
</div>
</div>
</div>
Update #1: Just to clarify, I am only using the edited Bootstrap for printing mode by including the following link:
<link rel="stylesheet" media="print" href="'css/Editedbootstrap.css" />
This issue specifically pertains to printing mode on Firefox. For more information about this problem, you can visit this post.