Reputation: 119
I want to decrease gap between fluidRow to zero gap
fluidRow(
h5("AAAAAAAAAAAAAAAAAAAAA", align = "center",style="background-color:#00ff99"),
h6("BBBBBBBBBBBBBBBBBBBB", align = "center",style="background-color:#00ffcc"),
h6("CCCCCCCCCCCCCCCCCCC", align = "center",style="background-color:#00ffff")
),
Upvotes: 0
Views: 68
Reputation: 7689
The gap is caused by the margin
. You can remove the margin
by adapting the css
and adding the style margin:0px;
.
Working example:
library(shiny)
ui <- fluidPage(
fluidRow(
h5("AAAAAAAAAAAAAAAAAAAAA", align = "center",style="background-color:#00ff99;margin:0px;"),
h6("BBBBBBBBBBBBBBBBBBBB", align = "center",style="background-color:#00ffcc;margin:0px;"),
h6("CCCCCCCCCCCCCCCCCCC", align = "center",style="background-color:#00ffff;margin:0px;")
)
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
Upvotes: 2