powered by
The display() function adjusts how a tag element is rendered. For example, to use the flex box layout the display must be "flex".
display()
"flex"
display(x, type)
A tag element or .style pronoun.
A responsive argument.
One of "inline", "inline-block", "block", "grid", "table", "table-cell", "table-row", "flex", "inline-flex", or "none".
"inline"
"inline-block"
"block"
"grid"
"table"
"table-cell"
"table-row"
"inline-flex"
"none"
div( div( .style %>% border("blue"), "block" ), div( .style %>% border("blue"), "block" ) )
block
div( div( .style %>% border("blue") %>% display("inline"), "inline" ), div( .style %>% border("blue") %>% display("inline"), "inline" ) )
inline
# NOT RUN { library(htmltools) # When using flex make sure you specify the flex display. div( .style %>% display("flex") %>% flex(justify = "center"), "Powerful stuff" ) # }
Run the code above in your browser using DataLab