I have the following table. I want to make all cells alignment to the right except the first row where the table's headers, I need the alignment centre. I used \multicol{1}{c}{col.}
for the header cells, but I am wondering, is there a better way without adding too much text to the table header's code? I want the code to be clean.
\documentclass[11pt,twoside,a4paper]{article}
\usepackage{booktabs}
\usepackage{array, makecell}
\begin{document}
\title{Title}
\begin{abstract}
Abstract
\end{abstract}
\maketitle
\begin{table}
\caption{Table's caption.}
\label{tab:table1}
\begin{tabular}{llll}
\toprule
Col 1 & Col 2 & Col 3 & Col 4 \\
\midrule
item1 & item2 & item3 & item4 \\
\hline
item11 & item22 & item33 & item44 \\
\hline
item111 & item222 & item333 & item444 \\
\bottomrule
\end{tabular}
\end{table}
\end{document}