In my attempt to design a div that occupies 8 columns, centered within a wide viewport, and expands to take up all 12 columns in any other viewport sizes, I encountered an issue.
Although I used justify-content-center to align the content, it seems that on smaller viewports, the content is not perfectly centered:
For large viewports, the content appears centered as expected: https://i.sstatic.net/kCUXh.png
However, on small viewports, the content is slightly off-center: https://i.sstatic.net/ely2L.png
This is the code being used:
<div class="row container-fluid justify-content-center">
<div class="main-container p-3 m-3 col-lg-8">
(text)
</div>
</div>