vertical_alignment {cascadess} | R Documentation |
The vertical_alignment()
function adjusts the inline position of inline,
inline-block, and table cell elements. The utility may be used to adjust the
vertical alignment of an image in a line of text or the contents of a table
cell.
vertical_alignment(x, alignment)
x |
A tag element or .style pronoun. |
alignment |
A character string specifying an alignment. One of,
|
An object of the same type as x
.
library(htmltools)
div(
"Text",
span("Above") %>%
vertical_alignment("top"),
span("Below") %>%
vertical_alignment("bottom")
)