From 81d101a6a7195f8575296b19fbf4d36dd145a602 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 12 Feb 2012 19:50:36 -0800 Subject: update docs on fixed nav per #1726 --- docs/components.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/components.html') 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> -

To make the navbar fixed to the top of the viewport, add .navbar-fixed-top to the outermost div, .navbar. In your CSS, you will also need to account for the overlap it causes by adding padding-top: 40px; to your <body>.

+

Fixed navbar

+

To make the navbar fixed to the top of the viewport, add .navbar-fixed-top to the outermost div, .navbar.

 <div class="navbar navbar-fixed-top">
   ...
 </div>
 
+

In your CSS, you will also need to account for the overlap it causes by adding 40px or more of padding to your <body>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.

Brand name

A simple link to show your brand or project name only requires an anchor tag.

-- 
cgit v1.2.3