The following approach will explain clearly.
Adjust boostrap gutter using css.
Set the display to inline block and specify the padding for the span element.
You need to remember that order matters in css.
Here is a gist that shows the uncompressed css that bootstrap creates so that all of its grid capabilities are available through direct css classes called in the html.
Bootstrap s grid system uses a series of containers rows and columns to layout and align content.
You can copy our examples and paste them into your project.
To remove gutter space for a specific div first we must know what is gutter space.
I came up with a handy no gutters class which has some pretty basic css that you apply to your row tag holding your columns.
In bootstrap 4 there are 12 columns in the grid system each column has a small space in between that space is known as gutter space.
Use our powerful mobile first flexbox grid to build layouts of all shapes and sizes thanks to a twelve column system five default responsive tiers sass variables and mixins and dozens of predefined classes.
Now in the head portion of your website load your new custom css file after the default bootstrap stylesheet.
Add css specify the text align property for the body element.
A portion of the css.
Michael hanna commented 2 years ago.
Regular bootstrap version below with kittens.
Recently i had a need to have a default grid in bootstrap but also on the homepage i needed to have 4 boxes that butted right up against each other.
Gutter space has width 30px 15px on each side of a column.
Set the color property for the icon green and icon red separately.
Now here s our code for the no gutters class.
Use 230 ready made bootstrap components from the multipurpose library.
This will guarantee that the original bootstrap style files will remain unaltered.
We actually ended up just downloading the bootstrap source unzipping it copying the source scss files into the assets folder then importing the bootstrap scss file in index js instead of the final bootstrap css file.
Using css override css customizations should be added to a separate custom css file to ensure maintainability.
Thanks for the response.