Open akfaour opened 2 years ago
Would love to know how to accomplish this as well!
Try the following. You need to assign an id to the gt table object. You can then use that to reference individual attributes and modify their css.
`library(gt)
gtcars %>% gt(id = "table") %>% tab_spanner( label = "Car Type", columns = c(mfr, model) ) %>% opt_css( css = "
border-bottom-width: 0px;
}"
)`
@hoosiercancer thank you that worked!
Glad to see there's a workaround for this! However, there should be cell_borders()
solution as well.
Great package.
Column spanners automatically have an underline underneath, any way to remove or modify the line? I am having a problem where there is a gap between the spanner underline and the vertical lines in the column headers - see below.
Setting a bottom border for the spanner using:
results in this:
I would like to get rid of the gap between the spanner underline, so there is a smooth horizontal line throughout the column labels?
Thank you.