padding_all | R Documentation |
The padding_*()
functions adjust a tag element's padding, the space between
the element's border and its content or child elements.
padding_all(x, ...)
padding_top(x, ...)
padding_right(x, ...)
padding_bottom(x, ...)
padding_left(x, ...)
padding_horizontal(x, ...)
padding_vertical(x, ...)
x |
A tag element or .style pronoun. |
... |
A number specifying the amount of padding. One of,
|
An object of the same type as x
.
library(htmltools)
div(
.style %>%
border_color(theme_primary()) %>%
padding_all(2),
"A padded element"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.