I have an table:
\begin{table}[h]
\begin{center}
\caption{Test wydajnosci wykonanej aplikacji mierzony w czasie odpowiedzi serwera 000webhost.com w milisekundach na wybrane zapytania.}
\begin{tabular}{| p{6cm} | p{2.5cm} | p{1.5cm} | p{2.4cm} | }
\hline
& \multicolumn{3}{ |c| }{ {\bf Czasy odpowiedzi:} } \\ \hline
{\bf Typy zapytań} & {\bf Srednia \mbox{arytmetyczna}} & {\bf Mediana} & {\bf Odchylenie standardowe} \\ \hline
Próba przeniesienia karty & 0.0 & 0.0 & 0.0 \\ \hline
Żądania generowane podczas standardowej rozgrywki & 0.0 & 0.0 & 0.0 \\ \hline
Zapytania niedozwolone (wbrew regułom) & 0.0 & 0.0 & 0.0 \\ \hline
Zapytania niedozwolone (niepoprawny format) & 0.0 & 0.0 & 0.0 \\ \hline
Odsyłanie literału & 0.0 & 0.0 & 0.0 \\ \hline
Przeglądanie strony www opartej o WordPress & 0.0 & 0.0 & 0.0 \\ \hline
\end{tabular}
\end{center}
\end{table}
Which render to this:
The table's caption is obviously bad positioned, overlapping the table's content.
How can I fix that and make the caption appear above the table?
Best Answer
Please provide an MWE which shows your actual state. Your provided code does not result in an error. However, I fixed it a bit for you. Here is how I would type it (including a
booktabs
-version in the end: