The overflow_*() functions adjust how an element's content scrolls.
Arguments
- x
A tag element or .style pronoun.
- behavior
A character string specifying the content overflow behavior. One of,
"auto""hidden"FALSE"visible""scroll"TRUE
Examples
library(htmltools)
div(
.style %>%
width_relative(25) %>%
overflow_horizontal("hidden"),
"We've really got to drag on this sentence because if we don't",
"then the example does not demonstrat the utility of the overflow",
"function"
)
#> <div class="w-25 overflow-x-hidden">
#> We've really got to drag on this sentence because if we don't
#> then the example does not demonstrat the utility of the overflow
#> function
#> </div>