Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Make this horizontal drop-down menu stretch the width of the screen? Reply To: [Solved] Make this horizontal drop-down menu stretch the width of the screen?

#177706
Sean
Participant

@Soronbe: It’s like magic!

I see you added ‘margin: 0 -9999px; padding: 0 9999px;’ to .main-navigation ul li:hover > ul

Everything works great on CodePen, but on my development site the li items in the sub-menu are vertical, not horizontal. The sub-menu ul seems to be taking its width from the parent li.

Here’s a screenshot.

I’ve tried to see if other CSS on the site is affecting it, but no dice yet.