tidyverse.org icon indicating copy to clipboard operation
tidyverse.org copied to clipboard

table styling with raw `knitr::kable()` tables

Open jimhester opened this issue 6 years ago • 1 comments

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)

jimhester avatar May 06 '19 16:05 jimhester

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;
}

jimhester avatar May 07 '19 14:05 jimhester