9

I would like to highlight the first row in a table, starting with "Date"

Here is a screenshot of the table in question:

Table with no highlighted rows

1 Answers1

19

This requires the xcolor package, its table option and the \rowcolor command.

From my point of view, there are too many lines in this table, but... well, it's the OP's design...

\documentclass[twoside]{article}
\usepackage[table,x11names]{xcolor}


\begin{document}
\begin{center}
\begin{tabular}{|*{4}{l|}}
\hline
\rowcolor{lightgray} Date & Time & Instruction & Design \tabularnewline
 & & & \tabularnewline
\hline
 & & & \tabularnewline
\hline
 & & & \tabularnewline
\hline
\end{tabular}
\end{center}
\end{document}

Example table with colored rows