aboutsummaryrefslogtreecommitdiff
path: root/docs/components
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-05-12 19:47:49 -0700
committerMark Otto <[email protected]>2016-05-12 19:47:49 -0700
commit9c100a6a9f4f62fea63b41d9df6f942c14f71cf6 (patch)
tree5bab27b7a6533629396b1969f3ea64069ac80672 /docs/components
parent083271ae48d0ce1ff5b869413449f5ecf777b6e9 (diff)
downloadbootstrap-9c100a6a9f4f62fea63b41d9df6f942c14f71cf6.tar.xz
bootstrap-9c100a6a9f4f62fea63b41d9df6f942c14f71cf6.zip
clarify example with code comment
Diffstat (limited to 'docs/components')
-rw-r--r--docs/components/navbar.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/components/navbar.md b/docs/components/navbar.md
index d106795a8..5f7f36634 100644
--- a/docs/components/navbar.md
+++ b/docs/components/navbar.md
@@ -59,10 +59,12 @@ Here's an example of all the sub-components included in a default, light navbar:
The `.navbar-brand` can be applied to most elements, but an anchor works best as some elements might require utility classes or custom styles.
{% example html %}
+<!-- As a link -->
<nav class="navbar navbar-light bg-faded">
<a class="navbar-brand" href="#">Navbar</a>
</nav>
+<!-- As a heading -->
<nav class="navbar navbar-light bg-faded">
<h1 class="navbar-brand m-b-0">Navbar</h1>
</nav>