gap_all {cascadess} | R Documentation |
Grid and flex margins
Description
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.
Usage
gap_all(x, ...)
gap_horizontal(x, ...)
gap_vertical(x, ...)
Arguments
x |
A tag element or .style pronoun. |
... |
A number specifying the space between child elements. One of,
|
Value
An object of the same type as x
.
See Also
margin_all()
for margins on non flex item elements.
Examples
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()
)
[Package cascadess version 0.2.0 Index]