commit | 62a3b3675451b972779336fee0fa09c1fa7d70b1 | [log] [tgz] |
---|---|---|
author | Irene <25118334+isteves@users.noreply.github.com> | Tue Apr 17 15:20:43 2018 -0700 |
committer | Irene <25118334+isteves@users.noreply.github.com> | Tue Apr 17 15:20:43 2018 -0700 |
tree | c8d580f8090fae86691308f6e84d00d3021431f7 | |
parent | b1caa27840a86eb17071dc8973b690650aee78f1 [diff] [blame] |
add width = 100% to example
diff --git a/docs/awesome_table_in_html.Rmd b/docs/awesome_table_in_html.Rmd index 8fa294f..eeae524 100644 --- a/docs/awesome_table_in_html.Rmd +++ b/docs/awesome_table_in_html.Rmd
@@ -421,3 +421,13 @@ kable_styling() %>% scroll_box(width = "500px", height = "200px") ``` + +<br> + +You can also specify width using a percentage. + +```{r} +kable(cbind(mtcars, mtcars), "html") %>% + kable_styling() %>% + scroll_box(width = "100%", height = "200px") +```