html - Get navigation menu dropdown to look just like the basic menu items -
i have css menu:
if hover mouse on 'inostranstvo' see dropdown open below it. i've been trying failing dropdown items items in horizontal menu.
so when user hovers on 'inostranstvo' items show should have: same width (width of widest item), same height , background existing menu items.
the background easy, can't force height , don't know how align widths. doesn't anything:
#nav li:hover ul li{ height:55px; line-height:55px; width:200px; }
the width value random, what's important height, can't seem force on list items. on other hand, adding border works, adds inside red background area. i'm sure can't complicated, can't figure out.
have tried set submenu li elements "display-type: block"?
i have added following css jsfiddle , seems work:
#nav li:hover ul li { display: block; background: #de2211; border-bottom: 1px solid black; }
Comments
Post a Comment