From 93a4d6cc5ecdc1cbc09c4b8af2e587f4480b36cf Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 15 Dec 2013 13:44:26 -0800 Subject: [PATCH] Fixes #11783: Document requirement of .container(-fluid) in navbars --- components.html | 131 ++++++++++++++++++++++++++---------------------- 1 file changed, 71 insertions(+), 60 deletions(-) diff --git a/components.html b/components.html index ddd773ad81..4afb2cd005 100644 --- a/components.html +++ b/components.html @@ -2295,33 +2295,36 @@ base_url: "../" -

Add .navbar-fixed-top.

+

Add .navbar-fixed-top and include a .container or .container-fluid to center and pad navbar content.

{% highlight html %} {% endhighlight %} @@ -2336,33 +2339,36 @@ body { padding-top: 70px; } -

Add .navbar-fixed-bottom instead.

+

Add .navbar-fixed-bottom and include a .container or .container-fluid to center and pad navbar content.

{% highlight html %} {% endhighlight %} @@ -2377,33 +2383,38 @@ body { padding-bottom: 70px; } -

Create a full-width navbar that scrolls away with the page by adding .navbar-static-top. Unlike the .navbar-fixed-* classes, you do not need to change any padding on the body.

+

Create a full-width navbar that scrolls away with the page by adding .navbar-static-top and include a .container or .container-fluid to center and pad navbar content.

+

Unlike the .navbar-fixed-* classes, you do not need to change any padding on the body.

{% highlight html %} {% endhighlight %}