2019 correct way according to the docs is using "x" in your p-0 class.
When you use p-0 you are setting padding for top, right, bottom and left. If you use px-0 it's for left-and-right "X coordinates" and so if you set py-0 it's "Y coordinates and at the <div class="row no-gutters">...
With this all the page going to have 0 padding. If you only want 0 padding in that part of the page maybe you should create a class "container-0padding" with that css code for example.
The solution can be achieved by this when you give p-0 to the inner column or you can add a class with the column like "xyz" and give it styling to
".xyz{padding: 0!important;}"
Just add class p-0 to class container-fluid & then add class no-gutters to child elements of class row, if you have more than one add to all rows.
Example:
Just remove
.col-xs-12
. It makes no sense to wrap your content in full-width column additionally.2019 correct way according to the docs is using "x" in your
p-0
class. When you usep-0
you are setting padding for top, right, bottom and left. If you usepx-0
it's for left-and-right "X coordinates" and so if you setpy-0
it's "Y coordinates and at the<div class="row no-gutters">..
.Should be like this:
Take a look into the docs: https://getbootstrap.com/docs/4.1/utilities/spacing/#notation
Just add this css
Your Code with this CSS
EDIT:
With this all the page going to have 0 padding. If you only want 0 padding in that part of the page maybe you should create a class "container-0padding" with that css code for example.
The solution can be achieved by this when you give p-0 to the inner column or you can add a class with the column like "xyz" and give it styling to
".xyz{padding: 0!important;}"
I think It works well.