Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Dropdown on hover"
Bootstrap 3.1.0 Snippet by
vivianciudad
3.1.0
Preview
HTML
CSS
View Full Screen
Forked from
Fork
Fork this
Parent
3.4K
 
0 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <p class="lead">Roll over the button on the left to see a dropdown</p> Rollover dropdown: <!-- Our Special dropdown has class show-on-hover --> <div class="btn-group show-on-hover"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> Action <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div> <ul class="nav nav-justified"> <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Health Care Services</a></li> <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Products <span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="#">Fizzy Lifting Drinks</a></li> <li><a href="#">Three-Course Dinner Chewing Gum</a></li> <li><a href="#">Whizdoodles</a></li> </ul> </li> <li><a href="#">Pharmacy</a></li> <li><a href="#">Dental Services</a></li> <li><a href="#">Multicultural Family Center</a></li> <li><a href="#">Get involved</a></li> <li><a href="#">Contact us</a></li> </ul> <li class="dropdown"><a class="dropdown-toggle" href="accommodation.php">Accommodation <strong class="caret"></strong></a> <ul class="dropdown-menu"> <li><a href="bed-and-breakfast.php">Bed & Breakfast</a></li> <li><a href="farmstay.php">Farmstay</a></li> </ul> </li> Regular dropdown: <li class="dropdown"><a class="dropdown-toggle" href="accommodation.php">Accommodation <strong class="caret"></strong></a> <div class="firefox_fix"> <ul class="dropdown-menu"> <li><a href="bed-and-breakfast.php">Bed & Breakfast</a></li> <li><a href="farmstay.php">Farmstay</a></li> </ul> </div> </li> </div> </div>
body{ padding:10px; } .show-on-hover:hover > ul.dropdown-menu { display: block; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76