I don't like the default color scheme or spacing of the CSS file, so I wrote this. It works in both ioslides_presentation and html_document.
table,
.table-condensed,
table.rmdtable {
width: auto;
margin-left: auto;
margin-right: auto;
}
table,
.table-condensed,
table.rmdtable,
table.rmdtable .header th,
.table > thead > tr > th {
border-collapse: collapse;
border-style: solid;
border-spacing: 0;
border-width: medium 0 medium 0;
border-color: inherit
}
table.rmdtable th,
table.rmdtable td,
table th,
table.rmdtable tr > td:first-child,
table.rmdtable .even {
font-size: 100%;
padding: 0.4em 0.5em;
color: inherit;
background: #FFF;
font-weight: normal;
}
.table > tbody > tr > td {
border-width: 0;
}
, . Firefox , , " ". , ; CSS . , , .