简体   繁体   中英

Change title size and style in Quarto html

I have a quarto file with an HTML rendering, and I want to change the size and style of the title, how should I proceed? Minimal example:

---
title: "Cars"
format: 
  html
---

## MTCars
```{r}
head(mtcars)
```

You can use css directly in your code, with font-size to change the size of the title, and font-style to change the style:

---
title: "Cars"
format: 
  html
---

```{css, echo=FALSE}
.title {
  font-size: 100px;
  font-style: italic;
}
```

## MTCars
```{r}
head(mtcars)
```

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM