J
J
jupyter2019-04-22 19:55:07
css
jupyter, 2019-04-22 19:55:07

How to center a flex container element?

Hello.
I'm learning flex. Here is a screenshot of part of the layout (see photo).
5cbdf03dbe3d3061777150.jpeg
My question is the following: how to properly center a round block with a photo?
For the parent flex container I use:

.about__list-left {
  display: flex;
  justify-content: flex-start;  /* либо значение flex-end  */
}

I understand that now the child element (round photo) needs to specify the correct property and value, but what?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene Volf, 2019-04-22
@jupyter

Probably like this ?

J
jupyter, 2019-04-22
@jupyter

my task is what:
first line: 1 element is pressed to the left border, the second (round) - in the center
second line: round in the center, 2 element is pressed to the right border
, etc...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question