Hello guys. Im getting these strange borders. Could you explain what I have to do to have a nice table? Thanks!
\documentclass[a4paper,12pt]{report}
\usepackage{graphicx}
\usepackage[table,xcdraw]{xcolor}
\usepackage{textcomp}
\begin{document}
\begin{table}
\centering
\resizebox{\textwidth}{!}{%
\begin{tabular}{|c|c|c|c|c|c|}
\hline
\rowcolor[HTML]{C0C0C0}
{\color[HTML]{000000} Material} & {\color[HTML]{000000} Quenching} & {\color[HTML]{000000} \begin{tabular}[c]{@{}c@{}}Tempering\\ temp. {[}°C{]}\end{tabular}} & {\color[HTML]{000000} \begin{tabular}[c]{@{}c@{}}Surface\\ hardness \\ {[}HRC{]}\end{tabular}} & {\color[HTML]{000000} \begin{tabular}[c]{@{}c@{}}Core \\ hardness\\ {[}HRC{]}\end{tabular}} & {\color[HTML]{000000} \begin{tabular}[c]{@{}c@{}}Density\\ {[}g/cc{]}\end{tabular}} \\ \hline
\cellcolor[HTML]{C6E3F9}BS S82 & oil & 170 & 61.8 & 42.7 & 7.86 \\ \hline
\cellcolor[HTML]{C6E3F9}FNDW & gas & 300 & 60.8 & 44.5 & 7.8 \\ \hline
\cellcolor[HTML]{C6E3F9}Pyrowear 675 & oil & 316 & 62 & 39-41 & 7.76 \\ \hline
\cellcolor[HTML]{C6E3F9}XD15NW & HF & 650 (TBC) & 58-60 & 59.2 & 7.7 \\ \hline
\cellcolor[HTML]{C6E3F9}CX13VDW & gas or oil & 250 & 63.9 & 39.2 & 7.8 \\ \hline
\cellcolor[HTML]{C6E3F9}GKHW & oil & 625 & 72.5 & 95 HRB & 7.8 \\ \hline
\rowcolor[HTML]{C0C0C0}
Surface treatment & Process & \begin{tabular}[c]{@{}c@{}}Process \\ temp. {[}°C{]}\end{tabular} & \begin{tabular}[c]{@{}c@{}}Corrosion\\ resistance {[}hours SST{]}\end{tabular} & Hardness & \begin{tabular}[c]{@{}c@{}}Wear \\ resistance\end{tabular} \\ \hline
\cellcolor[HTML]{C6E3F9}\begin{tabular}[c]{@{}c@{}}Manganese\\ phosphating\end{tabular} & spraying & 150 & 100 & na & - - \\ \hline
\cellcolor[HTML]{C6E3F9}Ni-P + PTFE & chemical & 140 - 300 & 500 - 1,000 & 550 HV & + \\ \hline
\cellcolor[HTML]{C6E3F9}CrN + DLC & PVD-CVD & \textgreater 200 & ++ & 1,500 - 6,000 HV & ++ \\ \hline
\cellcolor[HTML]{C6E3F9}CrN + WC/C & PVD-CVD & 180 - 250 & ++ & 2,000 - 2,500 HV & - \\ \hline
\cellcolor[HTML]{C6E3F9}Micronite & PVD + other & 400 (TBC) & +++ & 3,500 - 4,000 HK & +++ \\ \hline
\end{tabular}%
}
\caption{Materials and surface treatments investigated by Sonaca}
\label{table:sonaca_trials}
\end{table}
\end{document}
--
, e.g.58--60
. (I'd add a wee bit of spacing but that's debatable.)resizebox
on a table since it will lead to inconsistent font sizes.