I want to add horizontal divider on responsive navigation. This is bootstrap responsive view on mobile.

I want to add a divider in between the last two menu items namely "link" and "dropdown" menu items. If i add the following <li class='divider></li>'
in between them, it is not working. is there any other bootstrap way to do it? or we need to create our own classes to achieve this in responsive grid?
You will have to write @media queries like below:
See Divider in Browser- Resize browser to check
JSFiddle with Divider in collapsible nav

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) {
.nav-collapse .nav > li.divider {
*width: 100%;
height: 1px;
margin: 9px 1px;
*margin: -5px 0 5px;
overflow: hidden;
background-color: #e5e5e5;
border-bottom: 1px solid #ffffff;
}
}
@media (min-width: 600px){
.nav-collapse .nav > li.divider {
*width: 100%;
height: 1px;
margin: 9px 1px;
*margin: -5px 0 5px;
overflow: hidden;
background-color: #e5e5e5;
border-bottom: 1px solid #ffffff;
}
}
/* Landscape phones and down */
@media (max-width: 480px) {
.nav-collapse .nav > li.divider {
*width: 100%;
height: 1px;
margin: 9px 1px;
*margin: -5px 0 5px;
overflow: hidden;
background-color: #e5e5e5;
border-bottom: 1px solid #ffffff;
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With