S
S
smiros2016-10-19 08:13:48
css
smiros, 2016-10-19 08:13:48

bootstrap styles. How to remove indent?

Greetings
Tell me what to do: I
started to typeset on bootstrap. The main section consists of a main column (3/4) and a side column (1/4). At the same time, on the mocap, each has its own background (different from the body) and there is no padding between them (((. And in bootstrap col-md-9 and col-md-3, by default padding-left: 15px, padding-right : 15px Now I'm sitting tearing my hair out - why did I take bootstrap.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
iBird Rose, 2016-10-19
@feuer81

well, add classes for row and col like "myrow" and "mycol" and write styles for them:

.myrow {margin-left: 0; margin-right: 0;}
.mycol {padding-left: 0; padding-right:0;}

and if you want to remove it from everyone, then getbootstrap.com/customize/#grid-system item @grid-gutter-width

O
Oleg, 2016-10-19
@politon

So reassign styles in style.css

.col-md-9, .col-md-3{
padding:0;
}

V
Vadim Yagofarov, 2018-10-13
@GIRUPC

just add class p-0 m-0. For example for col when I need to do like this col-lg-3 p-0

A
Andrey P., 2021-03-08
@tingroup

pl-0, ml-0 on the left and pr-0, mr-0 on the right respectively and as in the answer before p-0, m-0 on both sides

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question