I would like to create a fixed sidebar that exists outside of my centered Bootstrap grid. The problem that I encounter when trying to do this is to determine what additional styles to apply / overwrite to my .container so that it does not overlap my sidebar when changing the screen size.
For starters, I use only part of the css frame grid, so .container , .row and .col-md-12 are code extracted from the bootstrap.css file itself and is not ordinary. Also keep in mind that I'm using Bootstrap 3 , so please, no suggestions regarding the fluid grid solution for Bootstrap 2, which is often asked in previous threads.
HTML
<div id="left-nav"></div> <div class="container"> <div class="row"> <div class="col-md-12"> <p>Lorem ipsum dolor sit amet, nunc dictum at.</p> </div> </div> </div>
CSS
html, body { height: 100%; width: 100%; } #left-nav { background: #2b2b2b; position: absolute; top: 0px; left: 0px; height: 100%; width: 250px; }
html css twitter-bootstrap responsive-design
Carl Edwards Dec 13 '13 at 2:09 on 2013-12-13 02:09
source share