K
K
kimqar_ver2020-04-25 17:00:22
css
kimqar_ver, 2020-04-25 17:00:22

How to align flex or grid to the width of the container so that the bottom boxes align first?

how to align flex to the width of the container so that the bottom blocks are first aligned (possibly in grids)
5ea44232c8b00094027274.png
"block with doctors navigation"
and the other on the right
5ea442bb5d71a556265460.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-04-25
Matytsyn @ArsenyMatytsyn

1. You take the indentation that you should have between the tags.
2. Divide it in half.
3. Make the tag wrapper a negative indent above and below equal to half the indent between the tags.
4. You implement the tags with the usual flex-box without + flex-wrap: wrap.
5. You set the indent up and down for the tags equal to half the indent between the tags.
6. For all other tags, set the indent to the right (not to the left) equal to the whole indent between the tags.
Well, kindergarten, well. Grids and flexboxes do not bring any magic, you always have to think with your head.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question