31

I wonder why p columns are aligned at the bottom and b columns aligned at the top? enter image description here

created with this code:

\begin{tabular}{|p{0.3\linewidth}|m{0.3\linewidth}|b{0.3\linewidth}|}
\hline
\centering header p &
\centering header m &   
\centering header b \tabularnewline
\hline
text which is considerably longer than the width of the column  & 
text which is considerably longer than the width of the column  & 
text which is considerably longer than the width of the column 
\tabularnewline
\hline
\end{tabular}
37
  • p means normal cells, they are like parbox with alignment at the top line

  • b means alignment at the bottom, so the baseline is at the bottom line

  • m means alignment in the vertical center, i.e. the baseline is in the center.

So the position for alignment is meant. In your picture, the top line of the first text, the middle of the second and the bottom line of the last text are all in a line:

table cell alignment

  • 3
    Ok, I understand. My problem was that it is counter-intuitive. – Matthias Pospiech Nov 18 '11 at 14:57
  • 2
    So if I understand correctly, there is no (simple) way to have a column aligned at the bottom when the other columns are specified with r, l and c? In a table \begin{tabular}{p{1cm}b{1cm}rlc} the three last columns are aligned at the bottom. – Arthur Jan 8 '17 at 15:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.