# Text in table with images is not aligned on top

I have table with text in the first column and image in second. I want both columns to be top aligned. I use following code:

\begin{tabular}{p{3cm}l}
Internal state non-concurrent execution & \includegraphics[scale=0.4]{pics/queue_sequential.png} \\
Internal state concurrent execution & \includegraphics[scale=0.4]{pics/queue_concurrent.png}\\
\end{tabular}


The result looks like this:

I also tried to insert \vspace{0pt} as some thread suggests, but result was the same.

-
have you tried adding \vfill underneath the text? I seem to recall that that has worked for me before. –  myrtille Feb 5 at 15:29
\vspace{0pt} would work if the graphics were in a column of type p{..}. In l-columns you will have to move the graphics below the baseline with \raisebox{-\height}{....}. –  Ulrike Fischer Feb 5 at 15:31
@UlrikeFischer It helped! Thank you! I just thought that I don't need p for image, since it doesn't need wrapping. –  damluar Feb 5 at 15:37
@UlrikeFischer Could you make that an answer here? –  Joseph Wright Aug 6 at 15:23

\vspace{0pt} would work if the graphics were in a column of type p{..}. In l-columns you will have to move the graphics below the baseline with \raisebox{-\height}{....}.

-

The solution is to use the package 'array'. And then use m instead of the p boxes you have in argument of tabular environment.

\usepackage{array}
\begin{tabular}{m{3cm}m{5cm}}