T
T
timers2018-03-26 17:13:17
css
timers, 2018-03-26 17:13:17

How to make a menu in with uniform blocks?

Hello.
I ran into a problem how to make a menu with uniform blocks, i.e. each menu item was evenly distributed across the entire width.
And also, how to make a drop-down menu the entire width of the main block?
In search of one junk ... I did not find anything similar.
https://codepen.io/Timers/pen/JLrzrj

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tyzberd, 2018-03-26
@timers

https://codepen.io/anon/pen/OvxqKZ

I
Igor, 2018-03-26
@TAPAKAHATOP

.menu{
...
display:flex;
width:100%;
}
.menu>li{
flex-grow:1;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question