[Tex/LaTex] how to decrease the space between the \toprule and the \rowcolor


I have a table

Energy&19\%&7\% \\
LiveStock&2\%&-7\%   \\ \toprule
LiveStock&\cellcolor{red}{2\%}&\cellcolor{red}{-7\%}   \\

There is always some space between the toprule and the cellcolor, what should I do?

Best Answer

Something like this is the best i can get (using the link gonzalo provided)



test & test & test\\\hline
test & test & test \\
test & test & test   \\ \toprule
test&\cellcolor{red}{test}&\cellcolor{red}{test}   \\

Related Question