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