You do not need to do anything special. If you included these four files in your page:
- bootstrap.css
- bootstrap-responsive.css <- This is the most important thing for what you need. This .css file will indicate which layout follows depending on the page width.
- jquery-lastest-pack.js <- google search: "lastest pack jquery"
- bootstrap.js
Files called bootstraps will be included in the downloaded download package.
The navigator should be something like this:
<div class="navbar"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a class="brand" href="#">Project name</a> <div class="nav-collapse"> </div> </div> </div> </div>
And what you included in nav-collapse will be included in a nice menu for mobile devices. You can read more in the download documentation here in the section "Unusual Responses"
If you want to see an example of how the final result will be, go to the bootstrap main page and reduce the width of your browser.
source share