Given the following table with the column type C defined so that it has (small) fixed width and supposedly centered text, how can I make it so that the text is actually centered? None of the cell contents will have a length greater than 3 digits with a decimal point.
Using \setlength\tabcolsep{}
doesn't work and setting the column type to c
has the columns too wide, though p
looks essentially identical as the cells are too small to have actually centered text. Using @{}
removes all padding along the left side of the cell.
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
\begin{table}[]
\centering
\begin{tabularx}{\textwidth}{|r||C{.31cm}|C{.31cm}|C{.31cm}|C{.31cm}|C{.31cm}|C{.31cm}|C{.31cm}||}
\cline{1-8}
\small ---- & \footnotesize0.9 & \footnotesize0.92 & \footnotesize0.99 & \footnotesize1.0 & \footnotesize\textbf{***} & \footnotesize\textbf{***} & \footnotesize\textbf{***}\\
\cline{1-8}
\end{tabularx}
\end{table}
Best Answer
What about one of the following two suggestions?