Giter Club home page Giter Club logo

Comments (7)

tscanlin avatar tscanlin commented on May 25, 2024

Couldn't you just do .toc { max-height: calc(100% - <footer-height>px); }?

from tocbot.

supsup avatar supsup commented on May 25, 2024

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.

supsup avatar supsup commented on May 25, 2024

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.

tscanlin avatar tscanlin commented on May 25, 2024

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.

supsup avatar supsup commented on May 25, 2024

I will try that.

from tocbot.

tscanlin avatar tscanlin commented on May 25, 2024

Did this work for you?

from tocbot.

supsup avatar supsup commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.