View source: R/width-relative.R
width_relative | R Documentation |
The width_relative()
function adjusts a tag element's width relative to its
parent element's width.
width_relative(x, percent)
x |
A tag element or .style pronoun. |
percent |
A number specifying a percent. One of,
|
An object of the same type as x
.
library(htmltools)
div(
.style %>%
width_relative(25)
)
div(
.style %>%
width_relative(100)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.