My problem is exactly the same as the problem found here: Leaflet in ioslides_presentation puts unnecessary white space in box to toggle layers. Way to reduce size of box?
But I do not know where or how to add the css code to my r document.
Many thanks in advance.
One way to include css in an R markdown file is by putting it between the html <style>
and </style>
tags, like this:
Make sure you put the style tags below the header bit (under the second ---
)
If you edit your question to include your data and code, we could probably give a more specific answer.
---
title: "Untitled"
author: "Russ"
date: '2023-03-18'
output: html_document
---
<style>
p {
color: red;
background-color:green;
padding:10px;
</style>
## R Markdown
This is what it looks like after rendering: