# Table wont show all borders

I have made the following table:

\begin{center}
\begin{tabular}{| c | c | c |}
\hline
\cellcolor{blue!25}$M_{\delta}$ & \cellcolor{blue!25}$t_{go}^{s}$ [sec] & \cellcolor{blue!25}\text{Miss Distance [m]} \\ \hline
-100 & 0.5274 &  1.40153 \\ \hline
-150 & 0.4664 &  1.03992 \\ \hline
-200 & 0.4360 &  0.85460 \\ \hline
-250 & 0.4216 &  0.74391 \\ \hline
-300 & 0.4172 &  0.67290 \\ \hline
-350 & 0.4179 &  0.62575 \\ \hline
-400 & 0.4190 &  0.59338 \\ \hline
-450 & 0.4183 &  0.56994 \\ \hline
-500 & 0.4161 &  0.55187 \\ \hline
\end{tabular}
\end{center}


However, when I run the code the table looks as following:

I noticed that when I compile the borders sometimes appear and sometimes not.

Is there a way that I can make sure all the borders appear?

Thank you

• This might be a viewer issue. Do the lines show up if you magnify the output in your viewer? Related: Colored tabular - line not showing – leandriis Jun 30 '18 at 13:53
• Anyway, since all cells of the first row have the same colour, you should use the shorter syntax: \rowcolor{blue!25} $M_{\delta}$ &$t_{go}^{s}$ [sec] & \text{Miss Distance [m]} – Bernard Jun 30 '18 at 13:59

this is "extended" comment. consider Bernard comment, adding some small changes in column type and array stretching, your table looks like:

above image is generated by

\documentclass{article}
\usepackage[table]{xcolor}
\usepackage{array}

\begin{document}
\begin{center}
\renewcommand\arraystretch{1.5}             % <---
\begin{tabular}{| >{$}c<{$} | c | c |}  % <---
\hline
\rowcolor{blue!25}
M_{\delta}    & $t_{go}^{s}$ [sec] & Miss Distance [m]    \\ \hline
-100 & 0.5274  &  1.40153 \\ \hline
-150 & 0.4664  &  1.03992 \\ \hline
-200 & 0.4360  &  0.85460 \\ \hline
-250 & 0.4216  &  0.74391 \\ \hline
-300 & 0.4172  &  0.67290 \\ \hline
-350 & 0.4179  &  0.62575 \\ \hline
-400 & 0.4190  &  0.59338 \\ \hline
-450 & 0.4183  &  0.56994 \\ \hline
-500 & 0.4161  &  0.55187 \\ \hline
\end{tabular}
\end{center}
\end{document}

• @Ben, any news? – Zarko Jul 30 '18 at 18:05