Is there a way to have my content inside my cells please ?
I've tried to "cut" the content of my second column and put it in additionnal row (i've tried makecell
) so the content remains in the cell. But for my last column, the content goes beyond the cell. So why is the width of my last column not automatically increased especially when there is space to increase it and remains my content inside of my cell??!
\documentclass{article}
\usepackage{xcolor}
\usepackage{tabularray}
\usepackage{makecell}
\begin{document}
\begin{table}[htb]
\begin{tblr}{hlines={blue}, vlines={blue},
colspec = {*{3}{X[l]}},
row{1} = {c, font=\bfseries, fg=white, bg=blue},
row{even} = {bg=blue!10}
}
XXXXXXXX & \makecell{XXXXXXXXXX\\ XX} & [email protected]\\
XXXXXXXX & \makecell{XXXXXXXXXX\\ XX} & [email protected]\\
XXXXXXXX & \makecell{XXXXXXXXXX\\ XX} & [email protected]\\
XXXXXXXX & \makecell{XXXXXXXXXX\\ XX} & [email protected]\\
\end{tblr}
\end{table}
\end{document}
colspec = {*{2}l X[l]}
helps?X
columns is useless. And, as it stands, the natural width of the table withl
columns is a bit more than 18cm.