Skip to content

Instantly share code, notes, and snippets.

@AdrianAulbach
Created November 19, 2014 16:30
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdrianAulbach/9bb79f6e5d9b1ed0cff3 to your computer and use it in GitHub Desktop.
Save AdrianAulbach/9bb79f6e5d9b1ed0cff3 to your computer and use it in GitHub Desktop.
Show Bootstrap dropdown menus when js is disabled
<head>
<!-- [ Whatever you put in your <head> ] -->
<!-- link the noscript.css stylesheet only if javascript is disabled -->
<noscript>
<link rel="stylesheet" href="css/noscript.css" />
</noscript>
<!-- [ Rest of <head> ] -->
</head>
.collapse {
display: block;
visibility: visible;
}
.dropdown-menu {
display: block;
position: relative;
float: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment