R Shiny: How do you change the background color of the header?

I am writing a brilliant application and I would like to customize the appearance of the header. I can add images and format the text, but what I would like to do is change the background color, but only for the title bar and not for the rest. While I have it for my

ui.r: shinyUI(pageWithSidebar( headerPanel( list(tags$head(tags$style("body {background-color: black; }")), "Graphs", HTML('<img src="ah_large_black.gif", height="200px" style="float:right"/>','<p style="color:red"> test test </p>' )) ), 

It has text in two different colors and puts the image on the right side, but it makes the background color all black. Is there a way to limit the color to this heading only?

+6
r shiny
source share
1 answer

Try something like

 tags$style(".span12 {background-color: black;}") 

instead

 tags$style("body {background-color: black;}") 
+6
source share

All Articles