Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table styling with raw knitr::kable() tables #307

Open
jimhester opened this issue May 6, 2019 · 1 comment
Open

table styling with raw knitr::kable() tables #307

jimhester opened this issue May 6, 2019 · 1 comment

Comments

@jimhester
Copy link
Contributor

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants