L
L
lavezzi12015-11-27 08:35:43
css
lavezzi1, 2015-11-27 08:35:43

What is the best way to build a grid?

Hello!
Question about indents when developing a grid. There are several options, this is through margin-right, and remove the last one, margin around the edges, and the container has margin. Padding.
Which option is more convenient and versatile in further development?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Bukharev, 2015-11-27
@evgenybuckharev

flexbox

A
Andrey Goncharov, 2015-11-27
@agmegadeth

The most modern flexbox.
The bootstrap uses a negative margin for row and padding for float columns.
I use inline-blocks a lot as columns, though I use margin-right: -4px to remove the space between them. But then we can center the column layout with text-align on the container.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question