I'm still new to LaTeX, and I have a litle problem, I have a table with 3 columns and one row, the first and last column are equal, and the middle take all the space. But I want to center content of it. When I use \centering I got the result in the image bellow. Is there any solution?
\begin{table} \begin{tabularx}{\linewidth}{|m{3cm}|X|m{3cm}|} \hline \begin{minipage}{\textwidth} \includegraphics[width=3cm, height=2.5cm]{ump.png} \end{minipage} & \begin{minipage}{\textwidth} \centering Université Mohamed Premier \\ École Nationale de Commerce et de Gestion \\ Oujda. \\ \end{minipage} & \begin{minipage}{\textwidth} \includegraphics[width=3cm, height=2.5cm]{ump.png} \end{minipage} \\ \hline \end{tabularx} \end{table} Thank you very much.




![[1]: https://i.sstatic.net/pRt](https://i.sstatic.net/nrauy.png)

\linewidthinstead of\textwidthfor the middle minipagetableenvironment