# Table Background color

This is already a reference that is solved by others,

Here I made a quick gif to help people to get it quickly.

Steps:

1.Document–settings–Latex Preamble: \usepackage{colortbl}

2.Insert the table

3.Insert Latex codes, or use keyboard shortcut cmd+L

4.Type the background color that you want, for example,

```\rowcolor{}(name of color)
```

In Latex, only

red, green, yellow, blue, cyan, magenta, black and white are the choices or pure color names.

will make the color of the entire row.

5. Or, define the color by yourself:

```\definecolor{colorname}{colormodel}{colorvalues}
```

Video_table_cell

ref: 1.color_ref_1