最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

jquery - How can I get this menu container to be the height of the contents?

programmeradmin2浏览0评论

I have a menu that was created using Bootstrap 4. I am using CSS to show all sub menus on the opening of the main li (Products). Everything is working as expected however the container is not recognizing that the the nested submenu is open and therefore not adapting to the correct height. The staging website is . I'm looking to get the container (#main-menu) to adapt in height to include the sub menus.

I have a menu that was created using Bootstrap 4. I am using CSS to show all sub menus on the opening of the main li (Products). Everything is working as expected however the container is not recognizing that the the nested submenu is open and therefore not adapting to the correct height. The staging website is http://bgp.captchaintherye. I'm looking to get the container (#main-menu) to adapt in height to include the sub menus.

Share Improve this question asked Apr 16, 2020 at 12:25 Mike OberdickMike Oberdick 1214 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Seems as though it was as simple as making those nested drop downs relative position and setting top to 0.

发布评论

评论列表(0)

  1. 暂无评论