开发者

CSS drop down failing

开发者 https://www.devze.com 2023-02-07 11:41 出处:网络
I have a basic layout here, I am trying to apply a CSS drop down menu to it. http://www.danielkcheung.com/dan/

I have a basic layout here, I am trying to apply a CSS drop down menu to it.

http://www.danielkcheung.com/dan/

As you can see when you go to pick a drop down option the menu doesn't work. I haven't bothered styling it yet as I don't think there's a 开发者_StackOverflow社区point till it's functional.

Is there a reason for this? It's as if it's all sitting under the other content.


The fastest fix is to add this to your <ul>: position: relative; z-index: 1.

I tested in Firefox only.

If you would like more explanation as to why this works, let me know.


A better way is to remove position: relative from #posts and #title.

Just remove position: relative from everything unless you're certain it needs it.

0

精彩评论

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