开发者

Css Drop down menu, how to keep menu infront of content

开发者 https://www.devze.com 2023-03-14 11:26 出处:网络
I have 开发者_JAVA百科created a Css drop down menu but when i hover over a link i can still see the content beneath.

I have 开发者_JAVA百科created a Css drop down menu but when i hover over a link i can still see the content beneath.

http://ljessett.hndcomputing.net/lewis/

I have tried editing the z-index but that hasnt work any ideas?


z-index will work but it only works on positioned elements. So you need to position your dropdown menus either by declaring the position property to be either absolute, fixed or relative. In this case I'd suggest going for relative.

Further reading on z-index: http://www.w3schools.com/css/pr_pos_z-index.asp

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号