U
U
unsweet2021-07-17 16:16:38
css
unsweet, 2021-07-17 16:16:38

How to make blocks in the menu one after another, without indentation?

There is a menu code with
Codepen
styles. The sides are made on flex and follow each other, while it is clear that there is an empty space between the first and third. How to remove it and pull the third block higher? Those. so that the blocks simply follow each other in two columns with a transfer. If there is a solution not on flex, then it will also be good

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Elena Fire, 2021-07-18
@BormotunJedy

https://codepen.io/BormotunJedy/pen/oNWWOew
Remove margin-top from .parent and ul. Remove padding from ul.
If the menu should be vertical then nowrap. If horizontal to columns, then flex-direction:column;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question