View source: R/design-sizing.R
height | R Documentation |
Utility function to change a tag element's height. Heights are specified relative the height of a parent element, an element's content, or the size of the browser window.
height(x, size)
x |
A tag element or .style pronoun. |
size |
A character string or number specifying the height of the tag element. Possible values: One of 25, 50, 75, 100 specifying the element's height as a percentage of its parent's height. The height of the parent element must also be specified. Percentages do not account for margins or padding and may cause an element to extend beyond its parent element.
|
div() %>% height(25)
# ->
div() %>% cascadess::height_relative(25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.