I have created two tables but I can't make them look as I desire, and also they are larger than the page margins so they aren't even centered. I want them to look like the pictures attached, but can’t make it work. Well the first table I think is relatively ok, just only I would like to center it, and if there is any way that I could center the content of an entire column? The second table has given me more trouble.
Table 1:
\begin{table}[htb]
\centering
\begin{tabular}{|l|l|l|l|}
\hline
\multirow{5}{2cm}{Casos Aceptables} & Casos & N\'umero de tarjetas & Porcentaje\\ \cline{2-4}
& \'Optimos & 49 & 49\% \\ \cline{2-4}
& Errores atribuibles al OCR & 9 & 9\%\\ \cline{2-4}
& Errores atribuibles a la tarjeta & 15 & 15\%\\ \cline{2-4}
& Total & 73 & 73\% \\ \cline{2-4} \hline
Casos no aceptables & No Aceptables & 27 & 27\% \\ \cline{1-4}
& Total & 100 & 100\% \\ \cline{2-4} \hline
\end{tabular}
\caption{Tabla 1.}
\label{tabla:final}
\end{table}
Table 2:
\begin{table}[htb]
\centering
\begin{tabular}{|l|l|l|l|}
\hline
\multirow{4}{2cm}{Casos Aceptables} & Casos & Error en caracteres & Tipo de Error\\ \cline{2-4}
& \'Optimos & Error menor al 4\% & Caracteres \\ \cline{2-4}
& Errores atribuibles al OCR & Error menor al 8\% & Caracteres\\ \cline{2-4}
& Errores atribuibles a la tarjeta & Error menor al 5\% & Caracteres e informaci\'on en los campos \\ \cline{2-4}
\hline
\end{tabular}
\caption{Tabla 2.}
\label{tabla:final}
\end{table}



![cortbl[1]](../../images/3f21882225d109ca83d43ecb8d0cb566.webp)
p{width}as your column specifier and choose an appropriate width. Other solutions such as thetabularxpackage are available. – Au101 Mar 14 '16 at 03:52\begin{table}\centerline{\begin{tabular}{cccc}\hline etc\end{tabular}}\end{table}But you might be better off using a side ways table or something. Anyway, to center a column, just usecinstead oflin the column spec. – Mark Mar 14 '16 at 04:16