]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
improve docs examples for .navbar-text
authorMark Otto <markdotto@gmail.com>
Sun, 15 May 2016 19:37:47 +0000 (12:37 -0700)
committerMark Otto <markdotto@gmail.com>
Sun, 15 May 2016 19:37:47 +0000 (12:37 -0700)
docs/components/navbar.md

index 086d49bcba8c620b42c919dcc82c5a97daa798f6..a82f881a2160284fdaf77e565f9f178ab3c55d33 100644 (file)
@@ -142,18 +142,32 @@ Navbars may contain bits of text with the help of `.navbar-text`. This class adj
 
 {% example html %}
 <nav class="navbar navbar-light bg-faded">
-  <span class="navbar-text">Navbar text with an inline element</span>
+  <span class="navbar-text">
+    Navbar text with an inline element
+  </span>
 </nav>
 {% endexample %}
 
-Using our utility classes, you can change the alignment of your navbar text.
+Using our utility classes, you can change the alignment and appearance of your navbar text.
 
 {% example html %}
 <nav class="navbar navbar-light bg-faded">
-  <span class="navbar-text pull-xs-right">Navbar text that's floated right</span>
+  <span class="navbar-text pull-xs-right text-muted">
+    Muted navbar text that's floated right
+  </span>
 </nav>
 {% endexample %}
 
+Similarly, you can use utility classes to align navbar text to other navbar elements like the brand and navigation (which are automatically floated already).
+
+{% example html %}
+<nav class="navbar navbar-light bg-faded">
+  <a class="navbar-brand" href="#">Navbar</a>
+  <span class="navbar-text pull-xs-left">
+    Navbar text that's floated left
+  </span>
+</nav>
+{% endexample %}
 
 ## Color schemes