Can you apply css style to a single selectInput menu?
I\'ve found code in other articles that deal with styling selectInput menu\'s but the outcome affects all of t
Thanks for this, very useful!
I wrapped up your answer in a working example:
library(shiny)
ui <- fluidPage(
tags$head(tags$style(HTML('
.selectize-input {white-space: nowrap}
#input1+ div>.selectize-dropdown{width: 660px !important; font-style: italic; font-weight: bold; color: green;}
#input1+ div>.selectize-input{width: 660px !important; font-style: italic; font-weight: bold; color: green; margin-bottom: -10px;}
#input2+ div>.selectize-dropdown{width: 300px !important; color: red;}
#input2+ div>.selectize-input{width: 300px !important; color: red; margin-bottom: 0px;}
'))),
selectizeInput("input1", "label1", c("A", "B", "C")),
selectizeInput("input2", "label2", c("D", "E", "F"))
)
server <- function(input, output, session){}
shinyApp(ui = ui, server = server)