Skip to content
Discussion options

You must be logged in to vote

Vertical centering is only possible within a container that has an height, but again this has nothing to do with Quarto.

---
title: "Quarto Playground"
format: html
---

This is a playground for Quarto.

```{=html}
<div style="display: flex; justify-content: center; align-items: center; height: 100px;">
  <a class="btn btn-primary btn-lg">Button text</a>
</div>
```

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dense-set
Comment options

@mcanouil
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
html Issues with HTML and related web technology (html/css/scss/js)
3 participants