Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying CSS to Accommodate for Dynamic Navigation Bar #199

Closed
SMMS25 opened this issue Sep 25, 2018 · 2 comments
Closed

Modifying CSS to Accommodate for Dynamic Navigation Bar #199

SMMS25 opened this issue Sep 25, 2018 · 2 comments

Comments

@SMMS25
Copy link

SMMS25 commented Sep 25, 2018

Hi,

I have a flexdashboard with multible tabs, using the theme Lumen. When I resize the page, i.e. decrease the width of the page, these tabs become multiple rows and overlap with the content of the main dashboard.

This issue has been mentioned in this post below as well, however there was no fix to this, but an alternative of using a dropdown menu was suggested. I would prefer not to have a drop down menu.

https://stackoverflow.com/questions/42914936/prevent-navigation-bar-from-overlapping-content-in-flexdashboard-r

I have started to solve this by creating an additional style sheet and by specifying:

.navbar-inverse.navbar-fixed-top{ overflow:auto }

This allows for the navigation bar container div to be resized dynamically displaying the tabs correctly.

However the div after ".navbar-inverse.navbar-fixed-top" which is "#dashboard-container" does not dynamically change its position. The content is still being overlapped by the navigation bar.

I am not able to figure out a way of how to specify "#dashboard-container" to dynamically reposition its top where the navbar ends.

The code below works in a small window and solves the overlap, however when the screen is resized to a full screen, there is empty space which does not look nice.

#dashboard-container{ position: relative; top: 10% }
I would gladly appreciate some help in figuring out a solution to this problem.

Thank you!

@mateuspestana
Copy link

Hey, I'm having the same issue and would love to see if someone has some tip to solve it!

@cpsievert
Copy link
Collaborator

This issue should be fixed by #308 (please reopen if it doesn't)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants