Ive got the following CSS drop down menu here which is working fine.
However, im trying to achieve something like eBay where, if you hover over the menu on the top right an border appears around the menu item, and the drop down.
I thought this would be simple enough - put a solid black border around the drop down, and then a black border around the left, top and right of the menu item and set the bottom border to be white - to "cover up" the border-top of the drop down. However, despite the z-index, the drop down always appears ontop of the menu item and i cant achieve the effect im looking for.
Question
Bollard
Hello all,
Ive got the following CSS drop down menu here which is working fine.
However, im trying to achieve something like eBay where, if you hover over the menu on the top right an border appears around the menu item, and the drop down.
I thought this would be simple enough - put a solid black border around the drop down, and then a black border around the left, top and right of the menu item and set the bottom border to be white - to "cover up" the border-top of the drop down. However, despite the z-index, the drop down always appears ontop of the menu item and i cant achieve the effect im looking for.
Would appreciate some help
Thanks
Link to comment
https://www.neowin.net/forum/topic/926142-css-border-on-a-drop-down-menu/Share on other sites
8 answers to this question
Recommended Posts