G
G
Gleb Zhukov2016-09-30 10:06:02
css
Gleb Zhukov, 2016-09-30 10:06:02

Why is row needed in bootstrap?

What does the .row class in Bootstrap do? Why is he needed?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alex Glebov, 2016-09-30
@machetero

.row {
    margin-left: -.9375rem;
    margin-right: -.9375rem;
}

Compensates for column padding. Without row there will be padding between the edge of the container and the first and last columns in the row.

M
Mikhail Osher, 2016-09-30
@miraage

getbootstrap.com/css/#grid

A
Alexander Veselov, 2016-10-01
@yaxromo5oma

It works like a clearfix, it clears the stream of floats, in our case it is "col-lg-n"
Where n is the size of the column, it is mainly used only if there are columns, that is
Container>row>col

A
Andrey Titov, 2019-03-14
@titov_andrei

To use the grid system, you will have to add the .row class to the main div.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question