Jordan
Jordan

Reputation: 465

How to combine 2 tags in R+Shiny

I have two style modifications in my shiny app on the user side ui.r. How do I combine the calls into a single call?

shinyUI(fluidPage(

## Make Lines Black
tags$head(tags$style(HTML("hr {border-top: 1px solid #000000;}")) ),

## Hide the ``logout'' popup
tags$head(tags$style(HTML('.shiny-server-account { display: none; }'))),

### MORE CODE...

Upvotes: 1

Views: 882

Answers (1)

DeanAttali
DeanAttali

Reputation: 26323

You literally place them both in the same string. For example:

css <- "
hr {border-top: 1px solid #000000;}
.shiny-server-account { display: none; }
"
...
tags$head(tags$style(HTML(css)))

Upvotes: 3

Related Questions