I am unable to view the borders of the table in the PDF output (only in the rows where the colour has been filled). I am using the following code:
Code: Select all
\begin{table}[htp]
\caption{Statistics}
\begin{center}
\setlength{\arrayrulewidth}{0.5pt}
\begin{tabular} {|p{3.5cm}| p{1.5cm}| p{1.5cm}| p{1.8cm}| p{1.8cm}| >{\centering\arraybackslash}p{2.2cm}|}
\hline \rowcolor[gray]{.8}
\textbf{Parameters} & \multicolumn{2}{>{\columncolor[gray]{.8}}c|}{\textbf{Value}} & \multicolumn{2}{>{\columncolor[gray]{.8}}c|}{\textbf{value $\pm$ sem}} & \textbf{n} \\
\hline
& \textbf{Control} & \textbf{Test} & \textbf{Control} & \textbf{Test} & \\
\hline
\multicolumn{6}{|>{\columncolor[gray]{.8}}l|}{\textbf{XYZ}}\\
\hline
\multicolumn{6}{|>{\columncolor[gray]{.8}}l|}{\textbf{analysis ($\%$XYZ$>$5) some text}}\\
\hline
{test} & {14.50} & {14.49} & {14.3$\pm$0.6} & {16.4$\pm$2} & {$0.7302$}\\
\hline
{test} & {0.10} & {0.13} & {0.11$\pm$0.02} & {0.13$\pm$0.02} & {$0.8057$}\\
\hline
{test} & {72.50} & {24.00} & {66.8$\pm$9.3} & {45.2$\pm$16.6} & {$0.4127$}\\
\hline
{test} & {21.50} & {21.00} & {23.3$\pm$5.2} & {25$\pm$7} & {$0.9048$}\\
\hline
{test} & {8.00} & {32.00} & {9.8$\pm$5} & {30$\pm$13} & {$0.3873$}\\
\hline
{test} & {0.57} & {0.53} & {0.55$\pm$0.11} & {0.45$\pm$0.07} & {$0.5556$}\\
\hline
{test} & {0.45} & {0.33} & {0.44$\pm$0.07} & {0.32$\pm$0.03} & {$0.2857$}\\
\hline
\end{tabular} \\
\end{center}
\label{table}
\end{table}%
Thanks,
SML