719016
719016

Reputation: 10431

R shiny fix sidebarPanel width to a specific pixels value?

How can I fix the sidebarPanel width to a specific value in pixels, instead of taking up a proportion of the total width compared to mainPanel?

Upvotes: 13

Views: 3622

Answers (1)

rcs
rcs

Reputation: 68809

This should get you started:

sidebarPanel(
  tags$head(
    tags$style(type="text/css", "select { max-width: 140px; }"),
    tags$style(type="text/css", ".span4 { max-width: 190px; }"),
    tags$style(type="text/css", ".well { max-width: 180px; }")
  ),

  ...

)

Upvotes: 14

Related Questions