How to adjust the width of sidebarPanel without affect subsequent sidebarPanel widths in R Shiny

后端 未结 1 1130
Happy的楠姐
Happy的楠姐 2021-01-19 03:43

I am trying to change the width of the sidebarPanel in R Shiny so that my mainPanel has more \'room\' to display two graphs side-by-side. The graphs are displayed in their r

1条回答
  •  太阳男子
    2021-01-19 03:49

    Using sidebarPanel looks a bit twisted to me, wellPanel might be a better choice. Try the following:

     left=wellPanel(
       tags$style(type="text/css", '#leftPanel { width:200px; float:left;}'),
       id = "leftPanel",
       selectInput .... as before
    

    This give the panel an id and assigns as style. Do something similar for the other panels.

    0 讨论(0)
提交回复
热议问题