Skip to content

Commit 81d101a

Browse files
committed
update docs on fixed nav per twbs#1726
1 parent 5fc62c5 commit 81d101a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/assets/bootstrap.zip

0 Bytes
Binary file not shown.

docs/components.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,12 +815,14 @@ <h3>Navbar scaffolding</h3>
815815
&lt;/div&gt;
816816
&lt;/div&gt;
817817
</pre>
818-
<p>To make the navbar fixed to the top of the viewport, add <code>.navbar-fixed-top</code> to the outermost div, <code>.navbar</code>. In your CSS, you will also need to account for the overlap it causes by adding <code>padding-top: 40px;</code> to your <code>&lt;body&gt;</code>.</p>
818+
<h3>Fixed navbar</h3>
819+
<p>To make the navbar fixed to the top of the viewport, add <code>.navbar-fixed-top</code> to the outermost div, <code>.navbar</code>.</p>
819820
<pre class="prettyprint linenums">
820821
&lt;div class="navbar navbar-fixed-top"&gt;
821822
...
822823
&lt;/div&gt;
823824
</pre>
825+
<p>In your CSS, you will also need to account for the overlap it causes by adding 40px or more of padding to your <code>&lt;body&gt;</code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.</p>
824826
<h3>Brand name</h3>
825827
<p>A simple link to show your brand or project name only requires an anchor tag.</p>
826828
<pre class="prettyprint linenums">

docs/templates/pages/components.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,12 +739,14 @@
739739
&lt;/div&gt;
740740
&lt;/div&gt;
741741
</pre>
742-
<p>{{_i}}To make the navbar fixed to the top of the viewport, add <code>.navbar-fixed-top</code> to the outermost div, <code>.navbar</code>. In your CSS, you will also need to account for the overlap it causes by adding <code>padding-top: 40px;</code> to your <code>&lt;body&gt;</code>.{{/i}}</p>
742+
<h3>{{_i}}Fixed navbar{{/i}}</h3>
743+
<p>{{_i}}To make the navbar fixed to the top of the viewport, add <code>.navbar-fixed-top</code> to the outermost div, <code>.navbar</code>.{{/i}}</p>
743744
<pre class="prettyprint linenums">
744745
&lt;div class="navbar navbar-fixed-top"&gt;
745746
...
746747
&lt;/div&gt;
747748
</pre>
749+
<p>{{_i}}In your CSS, you will also need to account for the overlap it causes by adding 40px or more of padding to your <code>&lt;body&gt;</code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.{{/i}}</p>
748750
<h3>{{_i}}Brand name{{/i}}</h3>
749751
<p>{{_i}}A simple link to show your brand or project name only requires an anchor tag.{{/i}}</p>
750752
<pre class="prettyprint linenums">

0 commit comments

Comments
 (0)