0
0
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:
Mark Otto 2016-05-14 12:41:26 -07:00
parent 745e37a325
commit f98f9c9155

View File

@ -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`. 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 %} {% example html %}
<nav class="navbar navbar-light bg-faded"> <nav class="navbar navbar-light bg-faded">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">