Skip to content
Discussion options

You must be logged in to vote

Because of the various display: block, either you learn to tweedle with CSS until your figure out the proper cascade (not 100 % sure it's actually possible here, since I believe you want the background to only appear under the text).

Quarto document HTML
---
title: "Reproducible Quarto Document"
format: revealjs
include-in-header:
  - text: |
      <style>
      .text-box {
        color: #fff;
        padding: 5px;
        border-radius: 10px;
        background-color: DodgerBlue;
        font-size: 1em;
      }
      .reveal .slides section h2 {
        text-align: center;
      }
      </style>
---

## [Introduction]{.text-box}

{{< lipsum 1 >}}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ManuelSpinola
Comment options

Comment options

You must be logged in to vote
1 reply
@ManuelSpinola
Comment options

Answer selected by mcanouil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
revealjs Issues with the revealjs format
2 participants