Home:ALL Converter>full width div not stretching to browser width in Bootstrap - non-responsive template

full width div not stretching to browser width in Bootstrap - non-responsive template

Ask Time:2014-03-27T16:40:29         Author:ravk

Json Formatter

I've just started building a website using bootstrap - non responsive template, and observed that my full width div (one with blue background) not stretching to full browser width when viewed resizing the browser window. Even though I added width: 100%; its making no difference. Please see attached the screngrab.

Also if I removed the 'navbar-fixed-top' class from main navigation, then navigation background also starts behaving in the same manner. Can anyone let me know whats going wrong here.

Note: The same thing happening in bootstrap template too if I add a full width div to any div block with container class.

enter image description here

Update here is the snippet of html code:

<div class="sub-header"> <!--div with blue background-->
  <div class="container">
    <div class="row">
      <div class="col-md-12">
          ------inner content -----
      </div>
    </div>
  </div>

and CSS code:

.sub-header { background: #0094e0; height: 80px; border-top: 1px solid #0082c5; border-bottom: 1px solid #0082c5; }

Author:ravk,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/22682218/full-width-div-not-stretching-to-browser-width-in-bootstrap-non-responsive-tem
yy