Laurenso
I have this table
![image.png](/image?hash=759c2ab002f56fe310c5a2812870726f62e50811767f31fa8dc6ce6a62d6877d)
Now I want like this
![image.png](/image?hash=1c68716f1cd6a390d60bead2c9257453374192590823f2b45d19f4a333ef212e)
My code
```
\documentclass[12pt,a4paper]{article}
\usepackage{fouriernc}
\usepackage{tabularray}
\usepackage[paperwidth=19cm, paperheight=26.5cm, left=1.7cm,right=1.7cm,top=1.5cm,bottom=1.7cm]{geometry}
\begin{document}
\thispagestyle{empty}
\begin{table}[htbp]
\centering
\begin{tblr}{
colspec={@{}Q[c]Q[c]@{}},vlines,hlines}
The left first line & The right first line\\ The left second line & The right second line The right second line\\
& Year 2022 -- 2023\\
\end{tblr}
\end{table}
\begin{table}[htbp]
\centering
\begin{tblr}{
colspec={@{}Q[c]Q[c]@{}}}
The left first line & The right first line\\ The left second line & The right second line The right second line\\
& Year 2022 -- 2023\\
\end{tblr}
\end{table}
\end{document}
```
I use ``colspec={@{}Q[c]Q[c]@{}}`` to set left space and right space. How can I set above and bottom space like that?
Top Answer
samcarter
You can use `abovesep` and `belowsep` to set the space above or below a row. The following example shows how to do this for the first and last row of your table:
```
\documentclass[12pt,a4paper]{article}
\usepackage{fouriernc}
\usepackage{tabularray}
\usepackage[paperwidth=19cm, paperheight=26.5cm, left=1.7cm,right=1.7cm,top=1.5cm,bottom=1.7cm]{geometry}
\begin{document}
\thispagestyle{empty}
\begin{table}[htbp]
\centering
\begin{tblr}{
colspec={@{}Q[c]Q[c]@{}},vlines,hlines}
The left first line & The right first line\\ The left second line & The right second line The right second line\\
& Year 2022 -- 2023\\
\end{tblr}
\end{table}
\begin{table}[htbp]
\centering
\begin{tblr}{
colspec={@{}Q[c]Q[c]@{}},
row{1}={abovesep=1cm},
row{Z}={belowsep=1cm},
}
The left first line & The right first line\\ The left second line & The right second line The right second line\\
& Year 2022 -- 2023\\
\end{tblr}
\end{table}
\end{document}
```