U
U
uni-sms2018-02-22 15:36:14
css
uni-sms, 2018-02-22 15:36:14

How to properly indent the menu?

Hello!
Tell me how to make the indents of the menu items match the layout?
This is a regular unordered list with links inside each li tag. The margin is given to each item li margin-right, but does not match the layout.
The top is like in the layout, the bottom is how it turned out for me.
5a8eb91dcbd01850941128.jpeg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeny Kuzovlev, 2018-02-22
@uni-sms

for menu

display: flex;
justify-content: space-between;

D
dom1n1k, 2018-02-22
@dom1n1k

If the overall width of the menu is important for the design, then it should be fixed in size.
And distribute the points inside not by margins (remember that a small systematic error tends to accumulate?), but through flex and space-between.

F
Fisher21, 2018-02-22
@Fisher21

Probably increase the value of margin-right by 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question