I am attempting to use an image in my www directory to span the full background of my headerPanel. I have my headerPanel title in headerPanel(h1("Title")
then I am attempting to set my picture to the full background of the headerPanel. However, I cannot figure out how to size the picture to span the whole headerPanel.(Picture is in the www directory)
I have tried these two things, and both (no matter how I change the dimensions) I cannot get it to span the whole panel.
shinyApp(
ui = fluidPage(
headerPanel(
h1("Title", align = "center", style = "color: white", img(src="picture.jpeg", height = 250, width = 250))),
and
ui = fluidPage(
tags$head(
tags$style(
"
.title
{
background-image:url('picture.jpeg');
background-repeat: no-repeat;
background-size: 60% 200%;
}
"
)
),
headerPanel(
h1("Title", class = "title")),
Don't mind the random dimensions, I messed around with them so much that I don't remember which ones I started with. Is there a way that I can just get the picture to span all of the columns of the headerPanel?