I have the below qmd file with 2 tabs. I'd like to change the tab text font style and size. How do I go about this?
---
title: "Cars"
title-block-banner: true
format:
html:
code-fold: true
page-layout: full
fig_caption: yes
---
::: panel-tabset
## MTCars
```{r}
head(mtcars)
```
## Cars
```{r}
head(cars)
```
:::
you can change the tab text font style by using css.
---
title: "Cars"
title-block-banner: true
format:
html:
code-fold: true
page-layout: full
fig_caption: yes
---
```{css, echo=FALSE}
.panel-tabset .nav-item {
font-size: 30px;
font-style: italic
}
```
::: panel-tabset
## MTCars
```{r}
head(mtcars)
```
## Cars
```{r}
head(cars)
```
:::
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.