Bootstrap Disabling Responsiveness


Bootstrap is popular for responsive web designing. By default, Bootstrap automatically adjusts your web pages for various screen sizes. If you want to disable this feature or want to show non responsive page, follow below steps to disable page responsiveness.

Steps to disable page responsiveness

  • Remove the viewport tag from page which is responsible to disables the zooming aspect of sites in mobile devices.
  • Override the width on the .container for each grid tier with a single width for example width: 970px make sure that this comes after the default Bootstrap CSS.
  • Remove all navbar collapsing and expanding behavior.
  • For grid layouts, use .col-xs-* classes in place of medium/large ones.

Bootstrap template with responsiveness disabled

<!DOCTYPE html>
<html lang="en">
  <head> <!-- www.techstrikers.com -->
    <meta charset="utf-8">
    <title>Non-responsive Template for Bootstrap</title>
    <!-- Bootstrap -->  
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"   
rel="stylesheet">  
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>   
  </head>
  <body>
    <div class="container">
      <div class="page-header">
        <h1>Non-responsive Bootstrap</h1>
        <p class="lead">Bootstrap is popular for responsive web designing. By default, 
		Bootstrap automatically adjusts your web pages for various screen sizes. 
		If you want to disable this feature or want to show non responsive page, 
		follow below steps to disable page responsiveness.</p>
      </div>

      <h3>What changes</h3>
      <ul>
<li>Remove the viewport tag from page which is responsible to disables the zooming 
aspect of sites in mobile devices.</li>
<li>Override the width on the <code>.container</code> 
for each grid tier with a single width 
for example <code>width: 970px</code> make sure that this 
comes after the default Bootstrap CSS.</li>
<li>Remove all navbar collapsing and expanding behavior.</li>
<li>For grid layouts, use .col-xs-* classes in place of medium/large ones. </li>
</ul>
</div>
  </body>
</html>

Try Now


See Also

AngularJS Built-in Filters
AngularJS Built-in Directives
AngularJS Expression
AngularJS Built-in Events
AngularJS Scope Methods
AngularJS Built-in Services
AngularJS Controller Inheritance
AngularJS Custom Directives



 
 
SHARE THIS IF YOU LIKE!
submit to reddit

SUBSCRIBE FOR LATEST UPDATES
HAVE WE CONNECTED ON FACEBOOK?
TOP TUTORIALSTOP CODE EXAMPLESTOP LIVE DEMOLINKSSTAY CONNECTED
HTML Tutorial
HTML5 Tutorial
Bootstrap3 Tutorial
Javascript Tutorial
TypeScript Tutorial
AngularJS Tutorial
CSharp Tutorial
PHP Tutorial
Developer Tools
Javascript
AngularJS
Google MAP API V3
ASP.NET
Javascript
AngularJS
Google MAP API V3
Contact Us
Advertise with Us
Privacy Policy
Disclaimer
Stay connected. We actually like you. If you want to get up to the minute updates, then connect with us on your fav below.
 
Twitter   Linkedin   Facebook   Google+    RSS   Pinterest
 
Protected by Copyscape Original Content Checker
 
 
Copyright ©2017 www.techstrikers.com Unauthorized reproduction/replication of any part of this site is prohibited.