-
DescriptionI used to be able to center figure captions using CSS in the following way
with
I just upgraded to 1.4.383 and this stopped working. This worked in 1.4.309, so I wonder what changed since then? Is there a new method to obtain centered figure captions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
#4944 happens and #6620 was merged for dealing with first part of it. This changed the way captions are expressed in HTML, so you should just inspect your HTML result, and look at the new rule you should set for your HTML Probably figcaption {
margin: auto;
text-align: center;
} or something more targetted. See here for the change that happens in HTML : https://quarto.org/docs/prerelease/1.4/crossref.html#changes-in-html-output Advice: when you are using the pre-release version, watch out for changelog at https://quarto.org/docs/download/prerelease.html |
Beta Was this translation helpful? Give feedback.
#4944 happens and #6620 was merged for dealing with first part of it.
This changed the way captions are expressed in HTML, so you should just inspect your HTML result, and look at the new rule you should set for your HTML
Probably
or something more targetted.
See here for the change that happens in HTML : https://quarto.org/docs/prerelease/1.4/crossref.html#changes-in-html-output
Advice: when you are using the pre-release version, watch out for changelog at https://quarto.org/docs/download/prerelease.html
We usually try to document such breaking change like this HTML changes.