How to keep the footer at the bottom in a page_navbar? #937
-
In the following app, the footer is shown at the bottom of app view. It moves while scrolling. I don't know if it is the expected behaviour, but shouldn't the footer be always at the bottom that you see after scrolling all the way down? Also, shouldn't the footer be outside the limits of the
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
this might be of some help https://www.freecodecamp.org/news/how-to-keep-your-footer-where-it-belongs-59c6aa05c59c/ try position:absolute |
Beta Was this translation helpful? Give feedback.
-
I'd also love to figure this out, and didn't get anywhere with position:absolute. I'm using page_sidebar, with navset_tab in the main panel. Ideally I'd like a footer that sits at the very bottom of each tab. In smaller-than-viewport tabs, it should appear at the bottom of the viewport, and in tabs longer than the viewport, it should appear below all content. |
Beta Was this translation helpful? Give feedback.
-
Same here. I would consider this as a bug as the Result is not below the content (or at least not below the content once filled by it's elements). If I'm right, position:absolute can't work unless the whole content of |
Beta Was this translation helpful? Give feedback.
-
First, you can remove Then you have a few options:
|
Beta Was this translation helpful? Give feedback.
First, you can remove
position: fixed; bottom: 0; width: 100%;"
. Theposition: fixed
means that the element should appear at the bottom of the viewport, which is not what you're wanting.Then you have a few options:
nav_panel()
with the tall plot. Inpage_navbar()
, either setfillable = FALSE
or givefillable
the names of other tabs that should be fillable.height="2000px"
rather than the card and the plot will scroll within the card and the footer will be at the bottom of the window.