The following HTML is generating unwanted padding:
-
None of the answers here helped me with Bootstrap 4.
Adding container-fluid p-0
removed the horizontal padding, but created a horizontal scrollbar.
The scrollbars come from the negative margin of the row elements - a 100% width container with no padding gets stretched by 15px on each side. It has nothing to do with column padding, as far as I can see.
The only workaround for me was
.container-fluid{
overflow: hidden;
}
- 热议问题