- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I have been making a webpage where i have dropdown menu in navigation bar. when i hover on particular item it shows the dropdown menu but other items stretch and fall out of menu bar
can anyone please help me
It would be helpful to see what your code looks like for the navigation (menu bar) in order to give the best feedback.
Actually i want to make it responsive nav but when i add flexbox to it and hover over the menu item then the drop down list pushes all other items to right.
here is my code
[MOD EDIT Mega Codedump Removed]
Actually i want to make it responsive nav but when i add flexbox to it and hover over the menu item then the drop down list pushes all other items to right.
here is my code
[MOD EDIT – Mega Codedump Removed]
Please use Codepen to demo code of that length.
Thank you,
It’s the way you have positioned the submenus.
The submenu wrapping divs should be positioned absolutely with the parent li
having absolute position.
http://codepen.io/Paulie-D/pen/emBKVa
Frankly you don’t need the divs, you could just use the submenu ul
but that’s another issue.
Thanks Paulie_D and everyone for the support.
This solved my problem