# How to prevent the borders of colored cell from disappear [duplicate]

the borders of the colored cells disappear in low size and appear when zooming in. Here is my code

\documentclass[12pt, fleqn]{article}
\usepackage[portuges]{babel}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{colortbl}
\usepackage{hhline}

\begin{document}

\begin{table}[ht]
\centering
\begin{tabular}{|c|c|c|c|c|}
\hline
\rowcolor[gray]{0.8} A & B & C & D      & E\\
&          &       & number1 & number2\\\hline
10 &       20 &    30 &         20 & 10\\
&          &    15 &            &  8\\\hline
\end{tabular}
\caption{}
\end{table}

\end{document}


I want the upper horizontal line to appear. But the result is as shown here..

i know it is a duplicate question how to prevent cell color to cover table's borders?, but the solutions provided didn't solve my problem.

## marked as duplicate by Werner, Peter Jansson, Jesse, Svend Tveskæg, Claudio FiandrinoMar 5 '14 at 16:13

• I used \hline instead of \cline and still the same result."the upper border disappear" – Misaki Mar 4 '14 at 13:27
• Well, use \setlength{\arrayrulewidth}{2pt} to increase the thickness of rules in a table. – Jesse Mar 4 '14 at 13:53
• the lines are thin to start with and you are making them only 65% of that, just use thicker lines. Also you have spurious white space into the left and right of your tabular, in the box due to missing % at ends of lines. – David Carlisle Mar 4 '14 at 15:16