Skip to content
Discussion options

You must be logged in to vote

::: {.top-right} means a div with class .top-right and inside a p element.

You have to define properly the nested rule.

.reveal div .top-right {
  p {
    margin: 0;
  }
  margin: 0;
  position: absolute;
  top: -4px;
  right: 12px;
  text-align: right;
  font-size: 16px; 
  color: #2CCCD3
}

Regarding the other question, simple use fenced divs as you did for the remaining of your example.

::: {.fragment fragment-index=4 style="text-align: center;"}
![](https://quarto.org/docs/websites/images/tools.png){.r-stretch}
::: 

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by zhengchencai
Comment options

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

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