diff options
| author | Mark Otto <[email protected]> | 2016-05-15 12:37:47 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-05-15 12:37:47 -0700 |
| commit | d4457b33032d2540a4a3b7fa600f22055ce2000d (patch) | |
| tree | daddf3b2ec05d2c234e23b145181bde470ac51d6 /docs/components | |
| parent | dfa2536c3b7070207a2d1fb21873639b41ae405c (diff) | |
| download | bootstrap-d4457b33032d2540a4a3b7fa600f22055ce2000d.tar.xz bootstrap-d4457b33032d2540a4a3b7fa600f22055ce2000d.zip | |
improve docs examples for .navbar-text
Diffstat (limited to 'docs/components')
| -rw-r--r-- | docs/components/navbar.md | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/docs/components/navbar.md b/docs/components/navbar.md index 086d49bcb..a82f881a2 100644 --- a/docs/components/navbar.md +++ b/docs/components/navbar.md @@ -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 |
