I am trying to make two tables side by side. I think it's best to show you what I am trying to achieve with an example:

Both of the tables should be of the style of the right table. In the picture I drew the left table should be exactly the same as shown in the right image. The right table in the picture I drew only have 2 entries at the top. But besides that it is still the same style.
I tried to achieve a table like in the right image with the following:
\usepackage{multirow}
\begin{document}
\begin{table}[h!]
\begin{tabular}{ll|ll|ll}
\multicolumn{6}{c}{Nächstes Nukleotid} \ \hline
& & A & T & C & G \ \hline
\multirow{3}{4em}{Vorheriges Nukleotid} & A & 0 & 1 & 1 & 0 \
& T & 1 & 0 & 0 & 1 \
& C & 1 & 0 & 0 & 1 \
& G & 0 & 1 & 1 & 0
\end{tabular}
\caption{Übersetzung Regel 888}
\end{table}
\end{document}
But that only produces the following:
And thats not looking good in my opinion. So how can I achieve something like in the right image demonstrated?



tableenvironment is allowed to have anything. In this case, have you tried having twotabularenvironments? – Teepeemm Jan 24 '24 at 13:27\begin{table} \begin{tabular} ... \end{tabular} \end{table}. It is perfectly fine to have\begin{table} \begin{tabular} ... \end{tabular} \quad \begin{tabular} ... \end{tabular} \end{table}. – Teepeemm Jan 24 '24 at 14:01