1

How I can top-align two minipage, when one contains figure only?

\documentclass[10pt]{article}
\usepackage[a4paper, total={7.5in, 10in}]{geometry}
\usepackage{graphicx, epstopdf, amsmath, amssymb, amsfonts, array, titlesec, authblk,
    verbatim, url, subcaption, booktabs, multirow, fontawesome5, xcolor, tikz}
\begin{document}
\begin{minipage}[t]{.25\textwidth}
    \includegraphics[width=\textwidth]{example-image-a}
\end{minipage}
\begin{minipage}[t]{.75\textwidth}
    Hello World
\end{minipage}

\end{document}

This code is giving enter image description here

1 Answer 1

2

Try like this:

\documentclass[10pt]{article}
\usepackage[a4paper, total={7.5in, 10in}]{geometry}
\usepackage{graphicx, epstopdf, amsmath, amssymb, amsfonts, array, titlesec, authblk,
    verbatim, url, subcaption, booktabs, multirow, xcolor, tikz}
\begin{document}
\noindent\begin{minipage}[t]{.25\textwidth}\vspace{0pt}
    \includegraphics[width=\linewidth]{example-image-a}
\end{minipage}%
\begin{minipage}[t]{.75\textwidth}\vspace{0pt}
    Hello World
\end{minipage}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .