Comments (7)
Couldn't you just do .toc { max-height: calc(100% - <footer-height>px); }
?
from tocbot.
I don't think so since the toc is fixed?
--i've never actually tried that css feature but i tried the following:
.toc { max-height: calc(100% - <#footer-height>px); }
it's odd minusing % from px?
from tocbot.
I reviewed
https://developer.mozilla.org/en-US/docs/Web/CSS/calc
and see how i was misusing this.
The problem then would be on long docs the toc would be cut short for most of the page just to handle the footer at the end?...some footers are massive!
from tocbot.
Yeah, I think I see what you're saying now. Why not just change the z-index of the footer to be above the toc so the toc just disappears behind it when you scroll down so far?
from tocbot.
I will try that.
from tocbot.
Did this work for you?
from tocbot.
Sorry I thought I responded to this the other day but I guess I forgot to hit submit:
Yes it works, but you have to also make sure your footer has a position set--at least if your using bootstrap.
from tocbot.
Related Issues (20)
- Server side rendered table of content HOT 1
- How to add non-heading type sections in the tocbot output HOT 7
- Three states for list items? HOT 3
- Flash when scrolling / doesn't scroll to right spot HOT 3
- tocbot links not getting highlighted HOT 1
- Scrolling tocbot and scrolling page HOT 8
- BUG: Links don't highlight on short pages HOT 1
- On complete callback HOT 1
- List generation with non-sequential heading levels HOT 7
- tocbot not working properly with id having emojis HOT 4
- How to use for WordPress? HOT 1
- TOC in `.xhtml` has no hierarchal structure (bookmark is flatten). HOT 1
- Is it possible to pass a function to format the links? HOT 1
- How can I let the Headings of tocbot indent to its corresponding position? HOT 4
- A problem occurred while using typescript HOT 9
- Navigation don't scroll to position with cyrillic characters ids HOT 6
- Regarding the description of the options, it is recommended to update HOT 15
- Help with large HTML, strange TocBot behaviour HOT 11
- Unusual issue with .is-active-link when there are multiple tocbots on a page HOT 1
- Overscroll support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tocbot.