N
N
Neuro2019-05-28 12:56:44
css
Neuro, 2019-05-28 12:56:44

How to make flexbox boxes align left?

Good afternoon, I have a parent block that consists of other blocks, I centered them using justify-content, how can I make new blocks start not in the center but on the left edge?
5ced057ed524e726078580.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Daniil Maslov, 2019-05-28
@Riveran

Change justify-content back to the default value and set the padding, for example using calc for width.

N
Nikolai Eremeev, 2019-05-28
@Nere

Good afternoon! Parent element set:
flex-direction: row;
flex-wrap: wrap;

D
Dima Polos, 2019-05-28
@dimovich85

Such things are solved with a column grid. justify-content should be in the flex-start position.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question