You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
h3 elements within columns end up indented differently than lists and other text within the same column.
Steps to reproduce
---title: columnarformat: revealjs---## Column lists
::: {.columns}
::: {.column}
### Odd* one
* three
* five
* seven
* nine
:::
::: {.column}
### Even* two
* four
* six
* eight
* ten
:::
:::
## Column text
::: {.columns}
::: {.column}
### Odd
this text is odd.
> this blockquote is also odd.
:::
::: {.column}
### Even
this text is even.
> this blockquote is also even.
:::
:::
Expected behavior
sub-headings and other column text should have consistent alignment within columns
Actual behavior
Your environment
No response
Quarto check output
Quarto 1.4.551
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.551
Path: /Users/aron/quarto/quarto-1.4.551-macos/bin
[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /Library/TeX/texbin
Version: 2024
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.12.2
Path: /opt/homebrew/opt/[email protected]/bin/python3.12
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with python3 -m pip install jupyter
[✓] Checking R installation...........OK
Version: 4.3.3
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
knitr: 1.45
rmarkdown: 2.27
[✓] Checking Knitr engine render......OK
The text was updated successfully, but these errors were encountered:
I was surprised by @cderv's analysis that this is because a margin specified in em will be a different size for <p> and <h3>, but yes indeed, em is relative not to the base font but to the font of the element.
<head>
<style>
.indent {
margin-left: 4em
}
</style>
</head>
<body>
<h1 class="indent">H1 with indent</h1>
<h2 class="indent">H2 with indent</h2>
<h3 class="indent">H3 with indent</h3>
<p class="indent">p with indent</h1>
</body>
</html>
(These margins would be the same size with rem units.)
mcanouil
added
the
themes
Related to HTML theming or any other style related issue (like highlight-style)
label
Jun 13, 2024
Absolute units like px could also work. I guess rem has the advantage of being the minimal change, but you’ll still have to test to make sure it looks good!
Bug description
h3 elements within columns end up indented differently than lists and other text within the same column.
Steps to reproduce
Expected behavior
sub-headings and other column text should have consistent alignment within columns
Actual behavior
Your environment
No response
Quarto check output
The text was updated successfully, but these errors were encountered: