Found this content helpful? Log in or sign up to leave a like!
HTML Coding for on Page Navigation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I have had a page working for some time now (well until today) where I could click on an image or button at the top of the page and it would go to a link on page. Admittedly, this link was through an accordion set up, but it worked.
Today, I have noticed that all the links are not working as they used to. From a quick CoPilot review it seems as though Canvas may not allow the linking in accordion menus anymore - even with the correct coding!
Has anyone else experienced this issue and how did you resolve it?
Thanks
Jen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This actually works for me in Chrome, which Edge is essentially the same -- provided that I have my screen narrow enough and short enough that it actually needs to jump to view it.
That is, if the content is already visible on the screen, it doesn't jump.
However, in none of my clicks did it expand something that isn't already expanded. I don't think that's what you want.
What did work, as far as what I think you're after, is to move the destination ID into the item within the summary rather than on the summary element itself.
This did not auto-expand:
<details>
<summary id="blueprint-standards" style="color: #13469b; font-family: 'arial black', 'avant garde'; font-size: 12pt; cursor: pointer;"><strong>BluePrint Standards</strong></summary>
<p><span>BluePrint Standards provide a snapshot on the various standards the College has set for its course standards. </span></p>
<p style="text-align: center;"><a href="#top"><span>Jump to Top</span></a></p>
</details>
This did auto-expand:
<details>
<summary style="color: #13469b; font-family: 'arial black', 'avant garde'; font-size: 12pt; cursor: pointer;"><strong>BluePrint Standards</strong></summary>
<p id="blueprint-standards"><span>BluePrint Standards provide a snapshot on the various standards the College has set for its course standards. </span></p>
<p style="text-align: center;"><a href="#top"><span>Jump to Top</span></a></p>
</details>
Furthermore, this expansion works even if my screen isn't stretched really narrow and short.
