Code Snippets

How to Make Bootstrap Dropdown Menu Extend on Hover

Riz Ali
Riz
Dec 30, 2013
1 min read
70 words
Make Bootstrap Dropdown Menu Extend on Hover

Bootstrap is a great CSS and Javascript framework. One of its brilliant features is the dropdown menu, which gets expanded when you click on it. In order to make it expand on mouse hover, you can just put this CSS inside your style sheet.

[css]
ul.nav li.dropdown:hover ul.dropdown-menu{
display: block;
}

/* if you want to hide the arrow */
a.menu:after, .dropdown-toggle:after {
content: none;
}
[/css]

Source

Set Featured Image Automatically With PHP Snippets
Riz Ali

Riz

Author

Riz is a Senior Web Strategist with over 14+ years of hands-on experience in full-stack web design and digital architecture. Having successfully delivered 250+ web projects, he believes passion is the engine of innovation. Riz specializes in translating complex technical concepts into accessible, fanatical content, helping businesses bridge the gap between aesthetic design and high-performance engineering. His work has been instrumental in scaling digital presence for startups and established brands alike.

View all posts

Continue reading

You might also like

Leave a Reply

Your email address will not be published. Required fields are marked *

Menu