From: Mark Otto Date: Sun, 15 Dec 2013 21:44:26 +0000 (-0800) Subject: Fixes #11783: Document requirement of .container(-fluid) in navbars X-Git-Tag: v3.1.0~148^2~6^2~4^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93a4d6cc5ecdc1cbc09c4b8af2e587f4480b36cf;p=thirdparty%2Fbootstrap.git Fixes #11783: Document requirement of .container(-fluid) in navbars --- 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 %}