# Center Tables > Adds a cssclass so that all tables in your notes are centered. The `.t-c` CSS Class is from the [[ITS Theme]]. If you're using that theme, you don't need to add this as a snippet, you can just add it to the cssclass field in the [[YAML frontmatter]]. Otherwise this snippet should be compatible with most other themes. --- Feel free to change `.t-c` to something else if you prefer to use a different class name. %% Paste your template below %% ```css .t-c table { margin-left: auto; margin-right: auto } ``` [![](https://i.imgur.com/4ywZHK1.png)](https://i.imgur.com/4ywZHK1.png) %% Hub footer: Please don't edit anything below this line %% # This note in GitHub <span class="git-footer">[Edit In GitHub](https://github.dev/obsidian-community/obsidian-hub/blob/main/02%20-%20Community%20Expansions/02.05%20All%20Community%20Expansions/CSS%20Snippets/Center%20Tables.md "git-hub-edit-note") | [Copy this note](https://raw.githubusercontent.com/obsidian-community/obsidian-hub/main/02%20-%20Community%20Expansions/02.05%20All%20Community%20Expansions/CSS%20Snippets/Center%20Tables.md "git-hub-copy-note") | [Download this vault](https://github.com/obsidian-community/obsidian-hub/archive/refs/heads/main.zip "git-hub-download-vault") </span>