vertical_alignment {cascadess} | R Documentation |
Vertical alignment
Description
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.
Usage
vertical_alignment(x, alignment)
Arguments
x |
A tag element or .style pronoun. |
alignment |
A character string specifying an alignment. One of,
|
Value
An object of the same type as x
.
Examples
library(htmltools)
div(
"Text",
span("Above") %>%
vertical_alignment("top"),
span("Below") %>%
vertical_alignment("bottom")
)
[Package cascadess version 0.2.0 Index]