How to center a whole table in a page?

Things I have tried

What I’m trying to do

i have a table and i want to put it in the center of my page.

Hi ludwidVan, thanks for your question, and welcome to the Obsidian community!

Are you familiar with Obsidian snippets? They’re small CSS files that you can use to customize the appearance. You can read more about them here: Add custom styles

I use this snippet to center tables on the page:

/* Center tables on the page */
.markdown-preview-view table {
    margin-left: auto;
    margin-right: auto;
1 Like

Wow thank you, im familiar with css but not very familiar with obsidian css classes. This snippet just change the css of particular note or change whole obsidian css?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.