I'm attempting to build a simple three column table using tabularx, but I must be misunderstanding some aspect of the code because my table is visibly not working out.
My goal is to have three equal column widths but no matter what I try the lines do not seem to match up. (I will also need to work on centering the text and keeping 'information' as a single word, but those problems are comparatively minor!)
My code for creating the table is below.
\caption{Common Curriculum}
\centering
\begin{tabularx}{0.9\linewidth}[ht]{||p{0.3\linewidth} | p{0.3\linewidth} | p{0.3\linewidth}||}
\hline
Physical Concepts & Mathematical Skills and Notation & Application in Quantum Information \\
\hline\hline
1 & 6 & 87837 \\
\hline
2 & 7 & 78 \\
\hline
3 & 545 & 778 \\
\hline
4 & 545 & 18744 \\
\hline
5 & 88 & 788 \\
\hline
\end{tabularx}
\label{tab:CommonCurr}.
\end{table}
I've tried using {\textwidth}
instead of {0.9\linewidth}
. I've also tried using thirds of the textwidth, but I assumed the problem with that idea was due to rounding as my horizontal lines then extended beyond the table giving me an opposite problem.
Any help would be appreciated!
[ht]
option (and must have at least one X column)0.9\linewidth
but the content has a fixed width of0.9\linewidth+6\tabcolsep+6\arrayrulewidth+2\arrayrulesep