set background color for specific cell in markdown table

lucky1928

I have a markdown table as below:

| 1 | 2 | 3 |
|---|---|---|
| 4 | 5 | 6 |
| 7 | 8 | 9 |

I wish to set background color to red for a specific cell, e.g. cell 8. I found some forum discussed to use HTML syntax to set font color but not found anyone can set the whole cell background color to red.

klml

The background-color is a part of the style. Markdown is only for content and structure.

But you can use css selectors

  • if you can use css3: td:nth-child(n)
  • with css2: td + td and overwrite it again td + td + td

Both versions with your example

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Set background color in table cell

How to Set the Background Color of a Cell in a MigraDoc Table

Bootstrap-Table - Set specific background-color based on cell value

How to set a background color of a Table Cell using iText?

How to set cell background color in grid/table in view in Vaadin?

How to set a material table cell's background color conditionally

jupyter notebook markdown code cell background color

Set background cell color on CListCtrl

Two color table cell background

Changing background color of specific cell on Google sheet

UITableView change background color of specific cell

Google Sheets Delete Cell with specific background color

Set background color if one cell's (of multiple columns) content is specific string using gt package

PhpSpreadsheet set background color of cell to white

JavaFX Set Cell Background Color of TableColumn

JavaFx Set Tableview Cell Background Color Dynamically

Set background color for a cell specified in JTable

How to set background color based on cell position?

Table Cell two color background diagonally

python docx setting background color table cell

Javascript Change table cell background color from second table cell

How to set the background and font color of a table cell in HTML5 using jquery

Javascript - How to compare tables cell background color to specific color code

JTable Set Cell Color At Specific Value

Change font color of specific cell in a table

Bootstrap 4 - border color for a specific cell in table

Treeview Tkinter : Is it possible to add a background color to a specific column and a specific cell?

How to get cell background color for table cell javascript?

Excel: Set background color of cell and text color with rgb