I'm very new to LaTeX, and I'm currently waist deep in my first project using it.
I'm trying to right align some text in cells in a table. I am using booktabs, not sure if that changes anything (I'm still trying to figure out how packages work, to be honest).

Here is my code:
\begin{table}[H]
\begin{center}
\caption{A comparison of statistics for forest and trailside ash saplings}
\begin{tabular}{lll}
\toprule
Statistic & Forest & Trailside \\ \midrule
\rowcolor[gray]{.9} Sample size (trees) & 243 & 257 \\
Mean (mm) & 133.19 & 139.39 \\
\rowcolor[gray]{.9} Median (mm) & 93 & 100 \\
Standard deviation (mm) & 110.36 & 117.96 \\
\rowcolor[gray]{.9} Standard error (mm) & 7.08 & 7.36 \\
95\% Confidence intervals (mm) & ~ & ~ \\
\makebox[2.4cm][r] Upper bound & 147.07 & 153.81 \\
\makebox[2.4cm][r] Lower bound & 119.31 & 124.96 \\
\bottomrule
\end{tabular}
\end{center}
\end{table}
As you can see, I am currently using \makebox[2.4][r] to hack it in, but if there's a more elegant way to accomplish this I'd love to know it.


booktabsis a great package, but indeed doesn't meddle with cell alignment. I also changed [tag:align] to [tag:horizontal-alignment] :-). – lockstep Sep 26 '11 at 21:22