tidyverse.org
tidyverse.org copied to clipboard
table styling with raw `knitr::kable()` tables
The default table styling basically outputs tables without any padding or lines, it does not look great. Ideally this would give us nicer output of some kind.
knitr::kable(mtcars)
I ended up with this css for a decently styled table
td,th {
padding: 0.4em;
}
thead {
border-top: 1px solid #aaa;
border-bottom: 1px solid #aaa;
}
table {
margin-left: auto;
margin-right: auto;
border-bottom: 1px solid #aaa;
}