Displaying third tier submenus properly with css only menu

前端 未结 1 1813
-上瘾入骨i
-上瘾入骨i 2021-01-26 14:50

I am developing a new site, and am having problems with the css menu. It is easier to explain by example: Here is the link of the site: http://www.webau.net/CSFF/index.asp

相关标签:
1条回答
  • 2021-01-26 14:58

    There are 3 issues here.

    1. You are displaying all <ul/> elements that exist below a hovered <li/>. Change #navsection ul li:hover ul to #navsection ul li:hover > ul to select the immediate child only

    2. You are setting the position of each drop level to be the same. Try adding something like #navsection ul ul ul { top: 1em; left: 140px; }, this will stop the grandchild obscuring the child.

    3. You're title attributes are negatively affecting your navigation. I'd remove them entirely as they do not add any real beneficial information to the link and obscure the menu items making the navigation difficult to use.

    I hope that helps :)

    0 讨论(0)
提交回复
热议问题