S
S
smailenemy2016-04-19 15:56:29
css
smailenemy, 2016-04-19 15:56:29

How to indent in bootstrap?

class="row">
left
center
right

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
Egor Sh, 2016-04-19
. @EgorkZe

padding-left
padding-right for col-md

G
gassmonkey, 2016-04-19
@gassmonkey

the padding between the blocks on the left and right should be 8px.

Indents in the bootstrap are not between columns, but inside, i.e. these are paddings. To get the desired result, you need to put additional. blocks inside .col-md-*, and set the background to them already.

A
Alex, 2016-04-19
@streetflush

Did I miss something? Isn't it 12 columns?

S
Sergey, 2016-04-20
@hector2009

Add this code to your styles at the very top (quick fix):
.row{margin-right: -8px;margin-left: -8px;}
.row div[class*="col-"]{padding-left:8px ;padding-right:8px;} // if you don't want to bind to .row then just remove .row first and just leave div[class*="col-"]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question