How to add margin spacing between source code blocks? #8075
Unanswered
mattwarkentin
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Please share code, not screenshots. Thank you. Use your favourite browser inspect/developper mode to target the right element. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```

The end.
```` |
Beta Was this translation helpful? Give feedback.
0 replies
-
My issue has crept up in an RevealJS presentation, but it generally applies to all HTML formats. ---
title: "Presentation"
format: revealjs
---
```{r eval=FALSE, echo=TRUE}
plot(cars)
```
```{r eval=FALSE, echo=TRUE}
plot(cars)
``` |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi,
I am having some issues coming up with the right CSS/SCSS to add margin spacing to the bottom of code blocks in a Reveal presentation. Any idea what I'm doing wrong? This is the default spacing has all of the code blocks touching.
When I add the following code to my SCSS theme it doesn't achieve what I was hoping. I've played around with other iterations but no luck. Just trying to create spacing (i.e., whitespace) between the divs.
Beta Was this translation helpful? Give feedback.
All reactions