[Tex/LaTex] How to make every column the same width

tables

\begin{tabular}{|c|c|c|c|c|c|}
\hline
x&x& & & & \\
\hline
 &x&x& & & \\
\hline
 & &x& & & \\
\hline
 & & & &x&x\\
\hline
 & & & & &x\\
\hline
 & & & & & \\
\hline
\end{tabular}

With the above script, since I don't have any check mark on the fourth column, I get a smaller width on that column… Can any body fix this problem?…

Best Answer

Define a new column

\documentclass{article}
\usepackage{array}
\newcolumntype{C}{>{\centering\arraybackslash}p{1em}}
\begin{document}
  \begin{tabular}{|*{6}{C|}}
\hline
x&x& & & & \\
\hline
 &x&x& & & \\
\hline
 & &x& & & \\
\hline
 & & & &x&x\\
\hline
 & & & & &x\\
\hline
 & & & & & \\
\hline
\end{tabular}
\end{document}

enter image description here

Related Question