C
C
Cheizer2021-04-21 17:27:02
css
Cheizer, 2021-04-21 17:27:02

How to make the same distance between the centers of the blocks?

Greetings, this is a real puzzle, how to make it so that the distance between the CENTERS of the blocks is the same in css? Not the distance between the blocks? it's easy as well between their centers. The fact is that the blocks are with content, and their width is not known, it is according to the content. The maximum is limited to 170px and that's it.
How, with an unknown width of the blocks, to make the distance between their centers the same?



Here's how I'm trying to do it
6080416958283078012035.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Chernenko, 2021-04-21
@vladchv

.step-list__item{
    width:100%;
    max-width:170px;
}

or
.step-list{
    justify-content:space-around;
}

the description of the task is so-so, but I think this is the second option ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question