Code: Select all
\documentclass[11pt,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage[total={6.25in,10in},left=1.25in,top=0.5in]{geometry}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[dvipsnames,table]{xcolor}
\usepackage{float}
\usepackage{tabularx}
\begin{document}
\begin{table}[H]
\centering
\newcommand{\mystrut}{\rule[-6pt]{0pt}{20pt}}
\begin{tabular}{l|@{}!{\mystrut}>{\centering}m{3.5em}|c|c|!{}>{}m{4em}}
\cline{2-4}
\rowcolor[gray]{0.95} % <--- problem here
& \multicolumn{3}{@{}!{\mystrut}c|}{Some funny title}
\\ \cline{2-4}
& \multicolumn{1}{>{\centering}m{6em}|}{Word 1}
& \multicolumn{1}{>{\centering}m{6em}|}{Word 2}
& \multicolumn{1}{>{\centering}m{6em}|}{Word 3}
&
\\ \cline{1-4}
\multicolumn{1}{|!{\mystrut}>{}m{4em}|}{Disk} & 1 & 2 & 3 & \\ \cline{1-4}
\multicolumn{1}{|!{\mystrut}>{}m{4em}|}{Sphere} & 1 & 2 & 3 & \\ \cline{1-4}
\multicolumn{1}{|!{\mystrut}>{}m{4em}|}{Cylinder} & 1 & 2 & 3 & \\ \cline{1-4}
\end{tabular}
\caption{Some description.}
\end{table}
\end{document}
2. The "1" in the second column aren't properly centered in their column. How to fix that?
3. I need the main part of the table to be centered on the page, so I added an empty column to the right. Something is wrong in my code, since the last vertical line isn't at the proper position. How to fix it?