Using \hhline coloring cells of a table [closed]

Sorry for this simple question. I am trying to color some cells of my table. Unfortunately, if I color two neighbouring cells, the lines of the table disappear. I have found some questions about this (here or here) They offer using \hhline, but I don't know how I am supposed to use it.

\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{colortbl}
\begin{document}
\begin{table}
\begin{tabular}{|l|c|c|c|c|}
\hline
\multicolumn{5}{|c|}{Type} \\
\hline
& A  &    B & C & D \\
\hline
X & 53,2\%  &  \cellcolor[gray]{.9}51,6\%  &  \cellcolor[gray]{.9}49\% & 49\% \\
Y  & 53,8\%  &  52,2\%  & 49\% & 49\% \\
\hline
\end{tabular}
\end{table}
\end{document}


Can anyone help me with this?

closed as off-topic by Troy, Johannes_B, Stefan Pinnow, moewe, TeXnicianDec 24 '17 at 8:26

• This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

• You mean vertical lines? Don't use them. But they don't disappear. It is only a pdf viewer issue. – user11232 Apr 16 '14 at 7:30
• Are you suggesting to leave the code as it is? Do the lines appear on the printed versions then? – DatamineR Apr 16 '14 at 7:32
• If you are talking about vertical lines, yes, they should appear in print. I see them in sumatrapdf. – user11232 Apr 16 '14 at 7:34
• As such your code gives me this in sumatrapdf: i.stack.imgur.com/SyMao.png – user11232 Apr 16 '14 at 7:36
• I'm voting to close this question as off-topic because it is a viewer issue. – Troy Dec 24 '17 at 4:45