RevealJS How to add format option for slides delineated with a horizontal rule #3422
-
Hi, I am trying to make the second slide and not the first scrollable. I'm not sure where to add {.scrollable}. I have tried the following with no success.
https://quarto.org/docs/presentations/revealjs/#content-overflow Let me know if you know how to do this :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I noticed you used the # {.scrollable}
blah blah
blah blah
blah blah
blah blah
blah blah
blah blah
blah blah
blah blah
blah blah
blah blah
blah blah
blah blah
blah blah
blah blah
blah blah
blah blah
However, on the latest Chrome and with Quarto 1.3.x (prerelease), this isn't giving me the result from the documentation. It is maybe a bug. Using Inspect in Chrome, I see a css definition of: .reveal .slide.scrollable {
overflow-y: auto;
} If I change it in Chrome to add (according to https://stackoverflow.com/a/30530246/1168342) a .reveal .slide.scrollable {
overflow-y: auto;
max-height: 100vh;
} I get a good result. A workaround (in my case) was to add the above CSS to a custom .css I specified in the |
Beta Was this translation helpful? Give feedback.
Yes using an empty header is the way to go. You can't add classes or attributes to
---
delimiters. We have an example of that in the doc with background color https://quarto.org/docs/presentations/revealjs/#slide-backgrounds-without-a-titleRegarding the observed behavior, this is because you are using
#
used for section slide (internal title slide) and not##
which is the way to split slides and on which.scrollable
is working. In short, scrollable works on normal slide not section slide (so by default when using##
)We could make it work on section slide also maybe, but usually there are not much text on those slides - only titles for section.
https://quarto.org/docs/presentations/revea…