Skip to content

Instantly share code, notes, and snippets.

@ArunHub
Last active March 29, 2019 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArunHub/4ee52601315e32b180512db3ab239d34 to your computer and use it in GitHub Desktop.
Save ArunHub/4ee52601315e32b180512db3ab239d34 to your computer and use it in GitHub Desktop.
bootstrap navbar header collapse for Tablet >768 < 991 and bootstrap 3 tricks
.navbar-header {
float: none;
}
.navbar-toggle {
display: block;
}
.navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.navbar-collapse.collapse {
display: none!important;
}
.navbar-nav {
float: none!important;
margin: 7.5px -15px;
}
.navbar-nav>li {
float: none;
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
}
.navbar-collapse.collapse.in {
display: block!important;
}
.collapsing {
overflow: hidden!important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment