I want to change the background color of the sideBarPanels on my page in my shiny app....but...only on one specific page. So I am thinking of using CSS tags but am unsure how to do it.
I tried this:
sidebarPanel(class="set1",
htmlOutput("vizTest")
)
And then tried referencing the class in the CSS file:
#set1 form.well {
background: transparent;
border: 0px;
}
So the trick was to wrap the sidebarPanel in a div and then set the class for the div. Then it can be referenced in the usual manner using the '.' prefix:
ui.R
div(class="set1",
sidebarPanel(
#content of panel here
))
css file
.set1 form.well {
background: transparent;
border: 0px;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.