Is it possible to archive somehow this result? Define fill color of the cells.

I’m not certain if this is what you mean, but I use custom CSS to color every other row for readability:

image

Here is the css:

/* Tables */

.markdown-preview-view tr:nth-child(odd) {
      background-color: var(--background-primary);
}

.markdown-preview-view tr:nth-child(even) {
      background-color: var(--background-secondary);
}
1 Like

Yes, this is fixed CSS… What I want to just enter some html code inside and it will color the cell. I dont want to have it color-full in all tables across obsidian…

This isn’t available in Markdown, but you could use HTML tables:

<table>
  <tr>
    <th>Header 1</th>
    <th>Header 1</th>
    <th>Last</th>
  </tr>
<tr style="background-color:red">
    <td>First</td>
    <td>Second</td>
    <td>Third</td>
  </tr>
  <tr style="background-color:blue">
    <td>First</td>
    <td>Second</td>
    <td>Third</td>
  </tr>
  <tr style="background-color:green">
    <td>Another</td>
    <td>Thing</td>
    <td>Here</td>
  </tr>
</table>

image

Of course, it won’t render in ALL markdown editors, but it works here.

2 Likes

Nice!

Thank very much this full-fills my needs as workaround…

1 Like