mirror of https://github.com/twbs/bootstrap.git
clarify example with code comment
This commit is contained in:
parent
083271ae48
commit
9c100a6a9f
|
@ -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.
|
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 %}
|
{% example html %}
|
||||||
|
<!-- As a link -->
|
||||||
<nav class="navbar navbar-light bg-faded">
|
<nav class="navbar navbar-light bg-faded">
|
||||||
<a class="navbar-brand" href="#">Navbar</a>
|
<a class="navbar-brand" href="#">Navbar</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
<!-- As a heading -->
|
||||||
<nav class="navbar navbar-light bg-faded">
|
<nav class="navbar navbar-light bg-faded">
|
||||||
<h1 class="navbar-brand m-b-0">Navbar</h1>
|
<h1 class="navbar-brand m-b-0">Navbar</h1>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in New Issue