I have a very simple table with only a few cells.
\documentclass{article}
\usepackage{mwe}
\begin{document}
\begin{table}[ht]
\centering
\begin{tabular}{c|ccc}
\hline
Long Text Here & D & E & F \\
\hline
\begin{center}\includegraphics[width=0.6\textwidth]{{example-image-a}}\end{center} & 100 & 200 & 300 \\
\hline
\begin{center}\includegraphics[width=0.6\textwidth]{{example-image-b}}\end{center} & 17 & 5 & 9898898 \\
\hline
\begin{center}\includegraphics[width=0.6\textwidth]{{example-image-c}}\end{center} & 2 & - & 8 \\
\hline
\end{tabular}
\end{table}
\end{document}
I want to align all the texts in rows so that they horizontally and vertically centered.
I followed the example here which does exactly what I need to do. But I am having trouble incorporating the m{}
function into my table. When I add {*{4}{m{0.4\textwidth}}}
everything looks terrible and out of place.
How can I adopt m{}
without breaking the table in this case? I don't quite understand how I can mix c
and m
together in order to keep everyting in center horizontally and vertically.