# Vertically center text in tabularx table [duplicate]

This question already has an answer here:

How to center text vertically in this table?

\begin{center}
\begin{tabularx}{\linewidth}{ | c | X | X | }
\hline
\textbf{Date} & \textbf{Name} & \textbf{Sign} \\
\hline
31.03.2013 & & \\
\hline
\end{tabularx}
\end{center}


Changing package is not a solution for me. How to do it in tabularx?

-
\def\tabularxcolumn#1{m{#1}} (but you should put some long text into your X columns to see any real difference) –  David Carlisle Mar 27 '13 at 13:18
It works very nice. Maybe post your solution so i can mark jour answer as accepted ;) –  bzykubd Mar 28 '13 at 9:37
add comment

## marked as duplicate by Heiko Oberdiek, Thorsten, Stefan Kottwitz♦Jul 6 '13 at 7:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

## 1 Answer

\def\tabularxcolumn#1{m{#1}}


defines the X column to use m (\parbox[c]) instead of p (parbox[t]).

-
add comment