Why do you need padding in Bootstrap?
Each col class has padding-left and padding-right 15px.
I stupidly removed them, put 0x, what can it affect?
1 answer
Since bootstrap was originally designed for rapid prototyping of layouts, I dare to think that these indents are designed so that you can add content to the blocks with the class col-* without unnecessary problems, without fear that the contents of the blocks will begin to “run over” each other . These indents form the visual edges of the content, so you can safely reset them and set your own, if necessary. Still, I think it will be more convenient to create a class that will reset them ( .nopadding { padding-left: 0; padding-right: 0;} ), and add it as needed, since built-in are quite comfortable.
- Thanks, got it! - Alexander Alekseev
|