gap_all | R Documentation |
The gap_*()
functions adjust the margins of child elements of a tag element
with a grid or flex display. Instead of applying margin_*() to
each child element, a single gap_*()
function is applied to the parent element.
gap_all(x, ...)
gap_horizontal(x, ...)
gap_vertical(x, ...)
x |
A tag element or .style pronoun. |
... |
A number specifying the space between child elements. One of,
|
An object of the same type as x
.
margin_all()
for margins on non flex item elements.
library(htmltools)
div(
.style %>%
flex_display(),
div(
.style %>%
margin_all(2)
),
div(
.style %>%
margin_all(2)
)
)
div(
.style %>%
flex_display() %>%
gap_all(2),
div(),
div()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.