# Math Help - Why isn't this.....

1. ## Why isn't this.....

Why isn't this working to create a table: [ m ath] \begin{center}
\begin{tabular}{ l | c || r | }
\hline
1 & 2 & 3 \\ \hline
4 & 5 & 6 \\ \hline
7 & 8 & 9 \\
\hline
\end{tabular}
\end{center} [/ ma th]

Note the spaces are there on purpose.

2. what do you exactly want to write? a matrix?

3. It seems you can't use the \..{center} environment on these forums.

If you remove that, it works fine.

4. If you want to centre a mathematical expression, you can surround the math with BB code "center" tags:

[center]
$$\begin{tabular}{ l | c || r | } \hline 1 & 2 & 3 \\ \hline 4 & 5 & 6 \\ \hline 7 & 8 & 9 \\ \hline \end{tabular}$$
[/center]

(But the table would look better if you put an extra | at the start of the column specification: {| l | c || r | }.)