css - Bootstrap design with white space both side -


i using bootstrap design webpage. since many people uses large screens prefer webpages content centered white space on both sides. example page:

https://www.nhstateparks.org/visit/state-parks/dixville-notch-state-park.aspx

i have tried make design this:

    <div class="container-fluid text-center">         <div class="row content">              <!--uses offset white space on left   -->             <div class="col-sm-2 col-md-offset-2">                 sidebar links             </div>             <div class="col-sm-6">                 main content             </div>             <div class="col-sm-2">             <!--this added white space on right  -->             </div>         </div>     </div> 

but want page behave page do. when shrink page, "use" blank space on left , right before start scale content. see stackoverflow.com this. not start scale content before white space on both side used.

replace container-fluid class container class.

<div class="container">     <div class="row">          <!--uses offset white space on left   -->         <div class="col-sm-2">             sidebar links         </div>         <div class="col-sm-6">             main content         </div>      </div> </div 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -