I am trying to have 2 tables side by side enter link description here. However the title of the table is long and it seemed overlap/touching it. How to avoid it?
\documentclass{article}
\usepackage{subcaption}
\begin{document}
\begin{table}[!htb]
\caption{Experimental setup for testing testing testing testing testing}
\begin{subtable}{.5\linewidth}
\centering
\caption{Experimental setup for testing testing testing testing testing}
\begin{tabular}{ll}
1 & 2
\end{tabular}
\end{subtable}%
\begin{subtable}{.5\linewidth}
\centering
\caption{Experimental setup for testing testing testing testing testing}
\begin{tabular}{ll}
3 & 4
\end{tabular}
\end{subtable}
\end{table}
\end{document}


0.5\linewidthit almost a sure thiing that they would overlap at the end. – mxnc baud Jan 01 '21 at 20:56\begin{subtable}{.25\linewidth}. Thecaptionof the Table do overlap – aan Jan 01 '21 at 21:00\hfillbetween the subtables ? – mxnc baud Jan 01 '21 at 21:04\end{subtable}% \hfill \begin{subtable}{.5\linewidth}. the same – aan Jan 01 '21 at 21:16