R Markdown Tufte Template: Font Size of Table Content

200 Views Asked by At

I failed many times. I put font-size:12px in th, td{}, or td{}, or table{}.

Is it possible to change the font size of table content?

1

There are 1 best solutions below

1
On

You can refer to an external stylesheet in the header:

---
title: "Table font size"
output:
  tufte::tufte_html:
    css: "table_style.css"
---

or inline CSS definitions per CSS-code chunk like:

```{css, echo=FALSE}
 td{font-size: 12px;}
```