question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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> … … …

</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!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
k-funkcommented, Aug 25, 2017

The required use of nav-link really ought to be in the docs.

1reaction
pehaacommented, Aug 17, 2017

I works once you add “nav-link” class to the links in your menu https://codepen.io/pehaa/pen/braKZB

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found