Skip to content
Discussion options

You must be logged in to vote

Note that this is a nearly 100 % HTML question which are more appropriate elsewhere. 😉

This being said, your class has absolutely no content, thus nothing to be displayed.
See the below working example:

---
title: "Quarto Playground"
format: revealjs
css: theme.css
---

## Quarto Playground slide

This is a playground for Quarto.
h2::after {
  content: "";
  display: block;
  margin-top: 0.5em;
  border-bottom: 1px solid black;
}

Also, you should not used !important lightly.

In CSS, !important is a keyword that is used to give a CSS property more weight than it would normally have. When a property is marked as !important, it will override any other declarations of that property that come…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Mutaz94
Comment options

@mcanouil
Comment options

Answer selected by Mutaz94
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 html Issues with HTML and related web technology (html/css/scss/js)
2 participants