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.imageedit_9_8881492193



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,

[sourcecode language=”latex” wraplines=”false” collapse=”false”]
\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:

[sourcecode language=”latex” wraplines=”false” collapse=”false”]


ref: 1.color_ref_1