Last active
December 11, 2015 19:48
-
-
Save phantom42/4650916 to your computer and use it in GitHub Desktop.
static sidebar nav menu using bootstrap
credit to Andres Ilich http://stackoverflow.com/a/9351158/1147918
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.sidebar-nav-fixed { | |
position:fixed; | |
top:60px; | |
width:21.97%; | |
} | |
@media (max-width: 767px) { | |
.sidebar-nav-fixed { | |
position:static; | |
width:auto; | |
} | |
} | |
@media (max-width: 979px) { | |
.sidebar-nav-fixed { | |
top:70px; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container-fluid"> | |
<div class="row-fluid"> | |
<div class="span3"> | |
<div class="well sidebar-nav sidebar-nav-fixed"> | |
... | |
</div><!--/.well --> | |
</div><!--/span--> | |
<div class="span9"> | |
... | |
</div><!--/span--> | |
</div><!--/row--> | |
</div><!--/.fluid-container--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment