Skip to content

How to keep the footer at the bottom in a page_navbar? #937

Discussion options

You must be logged in to vote

First, you can remove position: fixed; bottom: 0; width: 100%;". The position: 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:

  1. Disable filling layout of the nav_panel() with the tall plot. In page_navbar(), either set fillable = FALSE or give fillable the names of other tabs that should be fillable.
  2. Disable the minimum height of the card with the plot. The footer will appear after the card and inside the filled page.
  3. Or you instead make the plot 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.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@udurraniAtPresage
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@thekangaroofactory
Comment options

@szylinski-sa
Comment options

Answer selected by udurraniAtPresage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants