I'm re-asking my question from...
How do I find my shiny app's existing css?
...to generalize it for useRs that don't really get css yet. I've spent time reading over the rstudio css guide at http://shiny.rstudio.com/articles/css.html but it still doesn't click. I understand a couple things though that I think means I'm 90% there.
So, my question is what is the simplest implementation of css to change the background color of the example histogram app at the shiny gallery at http://shiny.rstudio.com/gallery/faithful.html.
I think the answer to this question would help along some shiny app developers that are new to css like myself.
Taken from Shiny article:
Once your Shiny app directory is set, you have two choices to link to your CSS file (your app won’t use the CSS until you do). You can:
- set the theme argument of fluidPage to your document’s name
- or include the file with the tags object.
But the simplest way really seems to use the function includeCSS():
includeCSS(path, ...)
Or just add an inline style in the example:
plotOutput(outputId = "main_plot", height = "300px" style="background-color:pink;"),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With