CSS:
body {position: relative;}
.active a, .active{color: red;}
HTML:
<body data-spy="scroll" data-target="#navbar-example">
<div id="navbar-example">
<ul class="nav" role="tablist">
<li><a href="#one">one </a></li>
<li><a href="#two">two </a></li>
<li><a href="#three">three</a></li>
</ul>
</div>
.......
.......
.......
</body>
But it's not working. What's wrong with me??
Please review this file that I did
https://www.dropbox.com/s/jfhvq1ip87ekcxs/Untitled-1.html?dl=0
Thank you for your support!
Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via JS Bin or CodePen and report back with your link, Bootstrap version, and specific browser and OS details.
Ok, it's my issue, scrollspy bootstraps 4 beta not working:
https://codepen.io/anon/pen/rzpWEr
Tks!
I works once you add "nav-link" class to the links in your menu https://codepen.io/pehaa/pen/braKZB
Wow, so amazing! Thanks so much!!!!!
Closed thanks to @pehaa comment's 馃憤
The required use of nav-link really ought to be in the docs.
Most helpful comment
The required use of
nav-linkreally ought to be in the docs.