Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change size of image in Quarto presentation

I would like to make the image smaller using width and heigth. But when I change this, the images place is complete different while specifying top right with top and right. Here is a reproducible example without change size:

---
title: "test"
format: revealjs
editor: visual
---

## Slide

When you click the **Render** button a document will be generated that includes:

-   Content authored with markdown
-   Output from executable code
-   Another point

![](R_logo.svg.png){.absolute top=0 right=0}

Output:

enter image description here

And with changing size:

---
title: "test"
format: revealjs
editor: visual
---

## Slide

When you click the **Render** button a document will be generated that includes:

-   Content authored with markdown
-   Output from executable code
-   Another point

![](R_logo.svg.png){.absolute top=0 right=0 width = "100" height = "100"}

Output:

enter image description here

As you can see the image is now at the bottom which is not what I want. So I was wondering if anyone knows how to fix this?

like image 864
Quinten Avatar asked Sep 07 '25 18:09

Quinten


1 Answers

When specifying style using key=val inline, do not put space before and after the equal sign (=),

![](Rlogo_svg.png){.absolute top=0 right=0 width=100 height=100}

output


like image 116
Shafee Avatar answered Sep 09 '25 06:09

Shafee