I spent almost the whole day trying to solve this problem, and above it did not work until I discovered this:
Make sure you also have fluid containers INSIDE THE DISTRIBUTED div:
<div class="container-fluid">
Otherwise, it will remain the same width and spill .. no matter what you do.
source share