Policy 1707 commit to LF
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / CSS / bootstrap / docs / _includes / getting-started / disabling-responsiveness.html
1 <div class="bs-docs-section">
2   <h1 id="disable-responsive" class="page-header">Disabling responsiveness</h1>
3
4   <p class="lead">Bootstrap automatically adapts your pages for various screen sizes.
5     Here's how to disable this feature so your page works like <a href="../examples/non-responsive/">this non-responsive example</a>.</p>
6
7   <h2>Steps to disable page responsiveness</h2>
8   <ol>
9     <li>Omit the viewport <code>&lt;meta&gt;</code> mentioned in <a href="../css/#overview-mobile">the CSS docs</a></li>
10     <li>Override the <code>width</code> on the <code>.container</code> for each grid tier with a single width, for example <code>width: 970px !important;</code> Be sure that this comes after the default Bootstrap CSS. You can optionally avoid the <code>!important</code> with media queries or some selector-fu.</li>
11     <li>If using navbars, remove all navbar collapsing and expanding behavior.</li>
12     <li>For grid layouts, use <code>.col-xs-*</code> classes in addition to, or in place of, the medium/large ones. Don't worry, the extra-small device grid scales to all resolutions.</li>
13   </ol>
14   <p>You'll still need Respond.js for IE8 (since our media queries are still there and need to be processed).
15     This disables the "mobile site" aspects of Bootstrap.</p>
16
17   <h2>Bootstrap template with responsiveness disabled</h2>
18   <p>We've applied these steps to an example. Read its source code to see the specific changes implemented.</p>
19   <p>
20     <a href="../examples/non-responsive/" class="btn btn-primary">View non-responsive example</a>
21   </p>
22 </div>