flex_align | R Documentation |
The flex_align()
function adjusts a tag element's cross axis alignment. By
default, the cross axis is the y-axis. When using flex_direction("column")
the cross axis becomes the x-axis.
flex_align(x, ...)
x |
A tag element or .style pronoun. |
... |
A character string specifying the cross axis alignment. One of,
|
An object of the same type as x
.
Other flex utilities:
flex_content()
,
flex_direction()
,
flex_display()
,
flex_justify()
,
flex_wrap()
,
item_align()
,
item_fill()
,
item_grow()
,
item_order()
library(htmltools)
div(
.style %>%
flex_display() %>%
flex_align("center"),
div("Flex item"),
div("Flex item"),
div("Flex item")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.