Option to left align table captions #1042
-
Is there a |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 16 replies
-
Currently you can do this with CSS. For example: ```{=html}
<style type="text/css">
caption, .table-caption {
text-align: left;
}
</style>
``` Alternatively you can place the CSS inside a styles.css file that you include with e.g. |
Beta Was this translation helpful? Give feedback.
-
This is a great CSS solution. But given how common a top-left caption is, personally I would reeeeaallly like to see a "topleft" option for the |
Beta Was this translation helpful? Give feedback.
-
The proposed solution here would only work for .html documents, right? Also, what would be the equivalent code for figures or if you wanted to have left-justified captions for both figures and tables? |
Beta Was this translation helpful? Give feedback.
-
My LaTeX class aligns figure captions left, but does not affect the table caption alignment. I wonder if there's a way to follow the alignment for table captions as well... I am afraid that if you guys make |
Beta Was this translation helpful? Give feedback.
-
Suggested workaround doesn't work for me with flextable. This one works however (html output): <style type="text/css">
figure.quarto-float-tbl figcaption.quarto-float-caption-top {
margin-top: .5rem;
margin-bottom: .25rem;
text-align:left
}
</style> |
Beta Was this translation helpful? Give feedback.
Currently you can do this with CSS. For example:
Alternatively you can place the CSS inside a styles.css file that you include with e.g.
css: styles.css