# Problem with vspace around table environment

I recently decided I wanted a caption for the top table, so I placed it in a table environment. When I did this, the \vspace*{-2.5cm} before the second table seemed to be ignored for some reason. Does anyone know why? How I can overcome this problem?

\begin{center}
\begin{table}
\caption{My Table}
\begin{tabular}
...
\end{tabular}
\end{table}
\end{center}

\newpage
\vspace*{-2.5cm}
\begin{center}
\begin{tabular}
...
\end{tabular}
\end{center}

If I remove the table environment then the \vspace*{-2.5cm} works again.

-
Never put a center environment around a table environment; instead, put \centering after \begin{table} – egreg Apr 24 '12 at 20:30
@egreg thanks, but can you explain why? Also, this seems to have centered the table vertically now. – Alex Apr 24 '12 at 20:34
The table environment defines a "floating object". Every LaTeX guide describes them. – egreg Apr 24 '12 at 20:36
@egreg I see. So the tabular environment is not a floating object and this is why the vspace no longer works? – Alex Apr 24 '12 at 20:39
– lockstep Apr 24 '12 at 20:42