I am experimenting with creating a custom table format for tables generated using the ioslides_presentation output type in Rmarkdown with Rstudio Version 0.98.1028. However, I'm facing difficulty in modifying the styling of the table headers.
Below is the content of my rmd file:
---
title: "Struggling to Customize Table Headers Using CSS"
author: "John Doe"
date: "September 15, 2021"
output: ioslides_presentation
css: slidetheme.css
---
## Basic Table
A B C
--------- -------- --------
1 2 4
2 3 5
Here's a snippet from my css file:
td, th {
width: 4rem;
height: 2rem;
border: 1px solid #ccc;
text-align: center;
}
td, tr {background:white; background-color:white; color: black;}
th {
background: black;
border-color: white;
}
body {
padding: 1rem;
}
While the table rows respond to the css adjustments, the header remains unaffected. Despite my efforts, I have not been successful in resolving this issue. Is there anyone who knows how to tackle this problem?
Thank you, Miguel