Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R shiny fix sidebarPanel width to a specific pixels value?

Tags:

r

shiny

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?

like image 892
719016 Avatar asked Nov 08 '13 09:11

719016


1 Answers

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; }")
  ),

  ...

)
like image 198
rcs Avatar answered Nov 07 '22 18:11

rcs