D
D
dhat2016-08-21 11:26:47
css
dhat, 2016-08-21 11:26:47

How can I make the hover menu the full width of the div?

I'm trying to make a menu for responsive design. Breakpoint at 720px (when menu background turns green) - how to make hover on menu link white in full width of this green div? I can't imagine that I just haven't tried it already. How to make this hover the width of the .main-menu div? There, the width is indicated 50vw - maybe because of this value there is a conflict?
codepen.io/dhatt/pen/BzEZRN

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Verkh, 2016-08-21
@dhat

.main-menu li {width:100%;padding:0;flex:1 1 100%;}
.menu-links {padding:10px 0;text-align:center;display:block;}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question