Scrollspy in bootstrap 4.0.0-beta seems not working
See original GitHub issue#I tried to follow the documentation:
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>
…
…
…
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!
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
bootstrap scrollspy not working - Stack Overflow
Here is what the problem i am facing. ... It is highlighting last tab at first and when scrolling it switches between only...
Read more >[Best solution]-Bootstrap 4 beta scrollspy not functioning
From the documentation, it seems that all that needs to be in place is that the body position is relative in CSS and...
Read more >Introduction - Bootstrap
Get started with Bootstrap, the world's most popular framework for building responsive, mobile-first sites, with jsDelivr and a template starter page.
Read more >bootstrap-loader - npm
bootstrap -loader. 3.0.0-beta.1 • Public • Published 4 years ago ... Consequently, for Bootstrap 4 issues, we need one of:.
Read more >BootStrap 4
There are two ways to setup the frameworks (Bootstrap and jQuery): ... href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The required use of
nav-linkreally ought to be in the docs.I works once you add “nav-link” class to the links in your menu https://codepen.io/pehaa/pen/braKZB