This question already has an answer here:

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

\documentclass[12pt, fleqn]{article}


\rowcolor[gray]{0.8} A & B & C & D      & E\\
                             &          &       & number1 & number2\\\hline
                          10 &       20 &    30 &         20 & 10\\
                             &          &    15 &            &  8\\\hline


I want the upper horizontal line to appear. But the result is as shown here.. enter image description 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 Fiandrino Mar 5 '14 at 16:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • I used \hline instead of \cline and still the same result."the upper border disappear" – Misaki Mar 4 '14 at 13:27
  • I can't reproduce your problem, but i do not know which package you use. For more help, please make minimal working example with \documentclass{..}\usepackage{...}\begin{document} ... your code ... \end{document} – Zarko Mar 4 '14 at 13:44
  • Well, use \setlength{\arrayrulewidth}{2pt} to increase the thickness of rules in a table. – Jesse Mar 4 '14 at 13:53
  • 4
    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
  • @Zarko Edited ... – Misaki Mar 4 '14 at 20:01

Browse other questions tagged or ask your own question.