I have a table where the first row contains a multirow cell. The multi-row should be coloured gray.
Question 1
Unfortunately, a thin white line appears between the multirows (see the picture at the end). Here is the code:
\begin{table}[H]
\renewcommand{\arraystretch}{1.5}
\rowcolors{2}{white}{gray!25}
\begin{center}
\begin{tabular}{ | c | c | c | }
\arrayrulecolor{black} %changes color of hline
\hline
\rowcolor{gray!50} & {Max Power} & {Typ. Range}\\
\rowcolor{gray!50}\multirow{-2}{*}{\textbf{Class}} & (mW) & (m) \\
\hline
\textbf{1} & 100 & 100\\
\textbf{2} & 2.5 & 10\\
\textbf{3} & 1 & 1\\
\textbf{4} & 0.5 & 0.5\\
\hline
\end{tabular}
\caption{Σύγκριση μεταξύ 2.4GHz και 5GHz}
\end{center}
\end{table}
Question2
Furthermore, I would like to adjust the spacing indicated with the red arrow. I would like it to be smaller, so that the text is closer to the line above, just for this specific row.
{table}
, you should use\centering
and not\begin{center}
and\end{center}
(for correct spaces).