mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
add docs note to clear up #18599--active states for navbars can be on anchors or parents
This commit is contained in:
parent
745e37a325
commit
f98f9c9155
@ -75,6 +75,8 @@ The `.navbar-brand` can be applied to most elements, but an anchor works best as
|
||||
|
||||
Navbar navigation is similar to our regular nav options—use the `.nav` base class with a modifier to achieve a particular look. In this case you'll want `.nav.navbar-nav`.
|
||||
|
||||
Active states—with `.active`—to indicate the current page can be applied directly to `.nav-link`s or their immediate parent `.nav-item`s.
|
||||
|
||||
{% example html %}
|
||||
<nav class="navbar navbar-light bg-faded">
|
||||
<ul class="nav navbar-nav">
|
||||
|
Loading…
Reference in New Issue
Block a user