Styling TOC with CSS

npowell9105
Community Member Posts: 12
Hi all,
I'm wondering if anyone else has come across this problem.
I have inserted a TOC into my title and don't want the border as it kills my design. However, using a Frameless TOC has the items running off a background box the TOC is sitting on. (hope that makes sense!).
So, I have added some custom javascript to run at the bottom of the page...
The "button15675" is the Table of Contents button used to move the TOC from offscreen to onscreen.
The toc18809 is the ID for the Div that contains the iFrame for the TOC. The childNodes looks in the div to see what's there. c[0] is the first node which happens to be the iFrame. Obviously the rest is to turn the default border off.
Now to my problem...
When I click the Preview in a browser, this all works just fine. See previewInBrowser.jpg - no border.
When I export the package to HTML, the code no longer works. See exportToHTML.jpg - bevelled border! I've been pulling my hair out for 2 days trying different things but I'm now at a loss...
Can anyone help?!
Cheers,
Nick
I'm wondering if anyone else has come across this problem.
I have inserted a TOC into my title and don't want the border as it kills my design. However, using a Frameless TOC has the items running off a background box the TOC is sitting on. (hope that makes sense!).
So, I have added some custom javascript to run at the bottom of the page...
document.getElementById("button15676").onclick=function(){ var c = document.getElementById("toc18809").childNodes; c[0].style.border ="0"; }
The "button15675" is the Table of Contents button used to move the TOC from offscreen to onscreen.
The toc18809 is the ID for the Div that contains the iFrame for the TOC. The childNodes looks in the div to see what's there. c[0] is the first node which happens to be the iFrame. Obviously the rest is to turn the default border off.
Now to my problem...
When I click the Preview in a browser, this all works just fine. See previewInBrowser.jpg - no border.
When I export the package to HTML, the code no longer works. See exportToHTML.jpg - bevelled border! I've been pulling my hair out for 2 days trying different things but I'm now at a loss...
Can anyone help?!
Cheers,
Nick
Comments
Leave a Comment
Categories
- 35.8K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 323 CenarioVR®
- 190 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products