0

I use this simple code:-

\documentclass[twocolumn,10pt]{article}
\usepackage[table]{xcolor}
\usepackage{array}
\newcolumntype{?}{!{\vrule width 3pt}}

\begin{document}

\begin{table*}[t]
\centering
\setlength\extrarowheight{2pt}
\setlength\arrayrulewidth{2pt}
\arrayrulecolor{white}
\begin{tabular}{|p{30mm}| p{35mm} | p{20mm}|}
\rowcolor{gray!100}
\hline
iota    &   iota     &   iota  \\
\rowcolor{gray!40}
\end{tabular}
\end{table*}


\begin{table}[]
\centering
\arrayrulecolor{black}
\begin{tabular}{c|c|c|c|}
\cline{2-4}
\multicolumn{1}{l|}{} & t & r & e \\ \hline
\multicolumn{1}{|c|}{1} & l & l & l \\ \hline
\multicolumn{1}{|c|}{2} & l & l & l \\ \hline
\end{tabular}
\end{table}

\end{document}

It gives a black cell. I looked here and here but unable to figure my solution.

I tried using this line instead above: -

\multicolumn{1}{l|}{} & \cellcolor[HTML]{FFFFFF}t & r & e \\ \hline

But this is not visually appealing as the cell borders appear thinner than others. Can someone suggest a good solution?

1 Answers1

2

Remove the last \rowcolor{gray!40} in the first tabular, where a row for this command is missing in this table.

From the documentation of \rowcolor in package colortbl (loaded by option table of package xcolor):

\rowcolor [...]. It must be used at the start of a row.

Heiko Oberdiek
  • 271,626