# Different CSS id/class for tables in theme vs posts

**URL:** https://meta.discourse.org/t/different-css-id-class-for-tables-in-theme-vs-posts/213068
**Category:** Feature
**Created:** [December 24, 2021, 3:58pm UTC](https://meta.discourse.org/t/different-css-id-class-for-tables-in-theme-vs-posts/213068 "2021-12-24T15:58:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![AtlasGames](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@AtlasGames](https://meta.discourse.org/u/AtlasGames)
#### Post date: [December 24, 2021, 3:58pm UTC](https://meta.discourse.org/t/different-css-id-class-for-tables-in-theme-vs-posts/213068/1 "2021-12-24T15:58:04Z")

</div>

TLDR: Give us a CSS hook (id or class) for the main theme’s tables, which are used for displaying categories, and a different one for tables in posts.

I had a user ask that I change our CSS to put “spreadsheet”-type lines in tables for his posts (he’s running a play-by-post RPG game). Easy enough, but when I did it, it added them to the main page list of categories as well, which looked awful. Adding a different CSS id or class to each of those two types of tables would let us have a different style for each.

I managed a fix that accomplishes it but it’s annoying, as the user has to put `<div data-theme-table="lines">` before each instance of his table html code and `</div>` after it to trigger the alternate CSS I implemented with lines. Also, this only works for html, not markdown.
