I want to make a table that has a fixed with and a row color. We all know that when you make a fixed width column, we need to add
@{\\extracolsep{\\fill}}
to actually fill the table. When I do this, the \rowcolor
fills my table with blank white space.
Code: Select all
Code, edit and compile here:
\begin{center}\begin{tabular*}{5in}{| @{\extracolsep{\fill}} l | @{\extracolsep{\fill}} l | @{\extracolsep{\fill}} l | @{\extracolsep{\fill}} l |}\rowcolor{tablecolor}\hlineReview Date & Name & Position & Action \\\hlineMarch 12,2012 & Man 1 & Manager & Accepted \\& Man 2 & Manager & Accepted \\\hline\end{tabular*}\end{center}
\rowcolor
fill the entire row in the table.