Replies: 2 comments
-
Revealjs framework is quite specific compared to regular HTML. It will automatically resize slide for example. More on that on https://revealjs.com/presentation-size/ and it will also use specific DOM for its slide layout. You should try to target the element you want to size using CSS directly. Did you try already to inspect the HTML and see which is the element you need to style ? |
Beta Was this translation helpful? Give feedback.
-
I have found that to increase the max height of the code output cell in revealjs that you need the following CSS. I believe the current default is 400px, so pick a figure bigger than that. .cell .cell-output-stdout pre code {
max-height: 650px; // Adjust this value as needed
overflow-y: auto; // Add this to handle overflow
} And the max height of the code block of the code (not its output) can be increased by the |
Beta Was this translation helpful? Give feedback.
-
Description
I use Quarto to make slides, with revealjs, for my lectures. As in the example below, sometimes the output is longer than the maximum height of the container that the output appears in.
I can't find a way to control the height of the container when the format is revealjs. Note there is no problem if the format is HTML. When rendering to HTML I can set the (max) height of the container using #| attr-output: but this doesn't work with revealjs.
What can I do to control/increase the height of the container for text/console output when using revealjs?
directly to HTML I can set the container height:
Beta Was this translation helpful? Give feedback.
All reactions