Right now I am working on a code bit, and I have a able of contents. I want people to easily get from the table of contents to a section that they want to go to. I was wondering if there was anyway to do this with internal links?
@williamwallacef13 Give each section an id, then link to the id. For example:
<a href="#about"> <!-- ... --> <h1 id="about">About Me</h1> <p>...</p>
I tried that, but all the link did when I clicked it was flash. Here is the code bit: https://www.codecademy.com/WilliamWallaceF13/codebits/I2HJQj/edit
Hm, seems like the Codebit is interfering with default browser behavior there
If you use JS to do the scrolling, you get a smooth scroll, and it works in a Codebit, so you could try that
Code Bits interfering with Internal Links
Thx a lot I will do just that.
Should I report it as a bug?
Up to you. It doesn't look like Codebits are being maintained anymore to me, but there's a chance it will get fixed if you report it ¯\_(ツ)_/¯