Reputation: 401
I have some downloadbuttons in a column, in shinyApp. I want to fix the same width for all the downloadbuttons in that column.
I don't know how to do it. I have tried css with tags$style(".btn: { vertical-align: middle; height: 50px; width: 150%; font-size: 30px;}")
mainPanel(
tabsetPanel(
tabPanel(
column(tags$style(".btn: { vertical-align: middle; height: 50px; width:
150%; font-size: 30px;}")
downloadButton("sadoon", "Sadoon_D"),
downloadButton("sahoo", "Sahoo_D"),
downloadButton("sainj", "Sainj_D"),
downloadButton("salooni", "Salooni_D")))))
I expect the downloadbuttons should be in the same width, but the output is as in the attached image.
Thanks a lot.
Upvotes: 1
Views: 1352
Reputation: 2318
Delete :
after .btn
.
So it will be something like:
tags$head(
tags$style("
.btn { vertical-align: middle; height: 50px; width: 150%; font-size: 30px;}"
))
Upvotes: 2