View source: R/vertical-alignment.R
vertical_alignment | 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")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.