I have created a table with tabular and cellcolor, and you know what hapends: the cell color overlap the border.
I have found that this is often solved with hhline. In order to change the color in lines over colored cells I've read that it's useful to use arrayrulecolor. In other words, to avoid this:
The previous table is defined by the following LaTex code:
\begin{table}[h]
\centering
\setlength\arrayrulewidth{0.8pt}
\begin{tabular}{|c|c|c|c|c|c|c|}
\hhline{-------}
\rowcolor[HTML]{EFEFEF} \cellcolor[HTML]{EFEFEF} & \cellcolor[HTML]{EFEFEF} & \cellcolor[HTML]{EFEFEF} &
\multicolumn{4}{c|}{\cellcolor[HTML]{EFEFEF}\textbf{Acción}} \\
\hhline{~~~----}
\rowcolor[HTML]{EFEFEF} \multirow{-2}{*}{\cellcolor[HTML]{EFEFEF}\textbf{$n_{d}$}} &
\multirow{-2}{*}{\cellcolor[HTML]{EFEFEF}\textbf{$n_{o}$}} &
\multirow{-2}{*}{\cellcolor[HTML]{EFEFEF}\textbf{Estado}} &
\textbf{Avance} &\textbf{Retroceso} &
\textbf{\begin{tabular}[c]{@{}c@{}}Giro\\ Antihorario\end{tabular}} &
\textbf{\begin{tabular}[c]{@{}c@{}}Giro\\ Horario\end{tabular}} \\
\hhline{-------}
\cellcolor[HTML]{FFF1F1} 0 & \cellcolor[HTML]{FFF1F1}\textbf{0} & \cellcolor[HTML]{FFF1F1}\textbf{0} &
\textit{0} & \textit{0} & \textit{0} & \textit{0} \\
\hhline{~------}
\cellcolor[HTML]{FFF1F1} & \cellcolor[HTML]{FFF1F1}\textbf{1} & \cellcolor[HTML]{FFF1F1}\textbf{1} &
\textit{0} & \textit{0} & \textit{0} & \textit{0} \\
\hhline{-------}
\end{tabular}
\end{table}
I've try to avoid the white lines (without success) using this:
\definecolor{tgray}{HTML}{EFEFEF}
\definecolor{tblack}{HTML}{000000}
[...]
\hhline{>{\arrayrulecolor{tgray}}->{\arrayrulecolor{tgray}}->{\arrayrulecolor{tgray}}->{\arrayrulecolor{tblack}}----}
The result is a whole black line:
As you can see, my problem is not solve with arrayrulecolor. Do you know how to make this successfully?
Even so, if you know another way to make tables which don't depends on the pdf viewer (with the solution I exposed here, with some levels of ZOOM some lines still don't apperar), it would be too profitable to me.
Thanks.