I am working on a project using rMarkdown and the flexdashboard package from rStudio. It works great. The only thing I'm struggling with is changing the orientation of the navigation bar. As the default, it appears at the top of the html file and I would like it to be on the left, with each button appearing horizontally. Is there a way to do this? Thanks for the input!
I tried something that seems to work (might probably be improved though, I am not a CSS specialist...)
---
title: "test"
output: flexdashboard::flex_dashboard
---
<style>
.navbar {
margin: 0;
padding: 0;
height: 100%;
display: block;
position: fixed;
width: 200px; /* Modify the width of the sidebar */
}
body {
margin-left: 200px; /* Add a left margin to avoid content overlay */
padding-top:0px
}
</style>