I'm trying to adjust the gap between rows in an actionButton()
rendered in a Shiny app as shown below and based on the MWE code at the bottom. How to adjust line spacing?
Applies only to this action button, not to the entire application. I'm not very familiar with HTML or CSS, but if I remember there is a way to apply HTML/CSS formatting to all objects in the application or only to specified objects in the application: I'm interested in applying it to only the specified object.
MWE code:
library(shiny) ui <- fluidPage( br(), actionButton( "add", HTML("Add <br/> column"), width = '80px', style='padding:0px; font-size:100%') ) server <- function(input,output,session)({}) shinyApp(ui, server)
You can override shiny's default
line-height
css rules.