I\'m trying to make my dropdown menu open by default when my collapsed navbar is opened. Here is a fiddle to show my code so far.
Currently, if you
You can add css style for responsive mobile display. paste it into your css file:
@media only screen and (max-width:480px){
.dropdown-menu{
display: block;
position: static;
background-color:transparent;
border:0 none;
box-shadow:none;
margin-top:0;
position:static;
width:100%;
}
.navbar-nav .dropdown-menu > li > a,
.navbar-nav .dropdown-menu .dropdown-header {
padding:5px 15px 5px 25px;
}
.navbar-nav .dropdown-menu > li > a{
line-height:20px;
}
.navbar-default .navbar-nav .dropdown-menu > li > a{
color:#777;
}
}
you can see it in its entirety here : Demo jsfiddle
hope that helps.