I feel like this is a noob question, but I've been busting my chops trying to find an answer to this.
I'm trying to create a table with two side by side paragraphs. They don't appear side by side when using a regular tabular. The problem can be worked around if I use \parbox
, but occasionally I want to be able to use \mdframed
on one side.
How do I get these two cells to line up?
\documentclass{article}
\usepackage{array}
\usepackage{mdframed}
\begin{document}
\begin{tabular}{p{.4\textwidth} | p{.58\textwidth}}
Hello from the other side.\\
I must have called 100 times.\\
&
To tell you I'm sorry for everything that I've done
But when I call you never seem to be home
Hello from the outside
At least I can say that I've tried
To tell you I'm sorry for breaking your heart
But it don't matter. It clearly doesn't tear you apart anymore.
\end{tabular}
\begin{tabular}{l | l}
\parbox[t][][t]{.4\textwidth}{Hello from the other side.\\
I must have called 100 times.\\
}
&
\parbox[t][][t]{.58\textwidth}{
To tell you I'm sorry for everything that I've done
But when I call you never seem to be home
Hello from the outside
At least I can say that I've tried
To tell you I'm sorry for breaking your heart
But it don't matter. It clearly doesn't tear you apart anymore.
}
\end{tabular}
\begin{tabular}{l | l}
\parbox[t][][t]{.4\textwidth}{Hello from the other side.\\
I must have called 100 times.\\
}
&
\parbox[t][][t]{.58\textwidth}{
\begin{mdframed}[linecolor=blue]
To tell you I'm sorry for everything that I've done
But when I call you never seem to be home
Hello from the outside
At least I can say that I've tried
To tell you I'm sorry for breaking your heart
But it don't matter. It clearly doesn't tear you apart anymore.
\end{mdframed}
}
\end{tabular}
\end{document}
Thanks.
b
, the otherp
. Is that on purpose?p
. I'm editing the question to reflect that.\\
with\newline
or\par
.mdframed