diff options
| author | Mark Otto <[email protected]> | 2012-02-12 19:50:36 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-02-12 19:50:36 -0800 |
| commit | 81d101a6a7195f8575296b19fbf4d36dd145a602 (patch) | |
| tree | 1750bc57316873519088288681430058a889cf4a /docs/components.html | |
| parent | 5fc62c5fcc93ab36a419c35e72674fbf632b09c3 (diff) | |
| download | bootstrap-81d101a6a7195f8575296b19fbf4d36dd145a602.tar.xz bootstrap-81d101a6a7195f8575296b19fbf4d36dd145a602.zip | |
update docs on fixed nav per #1726
Diffstat (limited to 'docs/components.html')
| -rw-r--r-- | docs/components.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/components.html b/docs/components.html index 8cd2e58d8..ac87f74b5 100644 --- a/docs/components.html +++ b/docs/components.html @@ -815,12 +815,14 @@ </div> </div> </pre> - <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><body></code>.</p> + <h3>Fixed navbar</h3> + <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> <pre class="prettyprint linenums"> <div class="navbar navbar-fixed-top"> ... </div> </pre> + <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><body></code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.</p> <h3>Brand name</h3> <p>A simple link to show your brand or project name only requires an anchor tag.</p> <pre class="prettyprint linenums"> |
