drop down menu css problem
-
Hello, I have been stuck on this for days now and not getting anywhere.
I am trying to get the submenu items in a nice vertical list
e.gitem1
item2
item3currently the submenu items are on top of each other horizontally.
eg.
item1 2 3
here is the call for the menu:
<div id="navmenu"> <div class="menucontainer"> <?php wp_nav_menu( array( 'buddy' => 'top-nav' , 'container_class' => 'navmenu' ) ); ?> </div> </div>
here is my css at the moment.
.navmenu { background-color: #fff; height: 42px; font-size: 16px; } .navmenu ul, div.menu ul { width:100%; max-width:1000px; list-style-type:none; display:block; margin:0 auto; padding: 0; } .navmenu li, div.menu li { float: left; text-align: center; width: 20%; position: relative; } .navmenu ul ul { display: none; position: absolute; top: 38px; left: 0; float: left; width: auto; z-index: 99999; } .navmenu a { color: #ed1d78; display: block; line-height: 41px; padding: 0 10px; text-decoration: none; font-weight: bold; } .navmenu ul li:hover > ul { display: block; } .navmenu li:hover > a, .navmenu ul ul :hover > a { background: #ed1d78; color: #D1CFCF; } .navmenu ul ul a { background: #fff; line-height: 1em; padding: 10px; width: 200px; height: auto; border-style: solid; border-width: 1px; border-color: ed1d78; }
[Moderator note: In future please wrap your code in backticks, it makes it a lot easier to read for us and stops the forum’s parser from corrupting your code]
Here is the URL
https://bjssoftware.net/demo/cms/222/
There is two pages under the About page but they are on top of each other in the submenu so can only see the one.
Any help would be greatly appreciated.
Thank you
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘drop down menu css problem’ is closed to new replies.