I want to horizontally align two cells with two lines in a table environment, something like this:
-------------------
| A long | foo |
| | ----|
| multiline | bar |
-------------------
What I'm getting is a blank line under foo
as the long multi-line takes up more vertical space, and bar
is pushed down. In this image, I don't want the blank space between 'First text' and 'Second text', or 'Second text' and 'Third text'.
I thought putting the top left cell into a minipage
would make it flow into the blank space I provided in the second row, but that didn't work. My MWE is below.
How can I align my cells correctly?
Here's my MWE:
\documentclass{article}
\begin{document}
\begin{table}[tb]
\begin{center}
\begin{tabular}{p{0.3\textwidth}p{0.6\textwidth}}
\hline
\begin{minipage}[t]{0.3\textwidth} A long\\line\end{minipage} & First text\\
& Second Text\\
A second\\Line & Third Text\\
& Fourth Text\\
\hline
\end{tabular}
\end{center}
\end{table}
\end{document}
Best Answer
Two options: