I would like to align 2 figures to top using minipage environment, I've seen post like this link but answers doesn't use minipage environment. I've got this code:
\documentclass[8pt,a4paper,dvipsnames]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[left=2cm,right=2cm,top=1.5cm,bottom=1.5cm]{geometry}
\begin{document}
Test text
\begin{figure}[htp]
{\hfill}
\begin{minipage}[t]{0.35\textwidth}
\centering
\includegraphics[scale=0.25]{example-image-a}
\end{minipage}
{\hfill}
\begin{minipage}[t]{0.55\textwidth}
\centering
\includegraphics[scale=0.55]{example-image-b}
\end{minipage}
{\hfill}
\end{figure}
\end{document}
which produces this:
I think if I've got figures align to bottom, I could align them to top. Thank you so much and excuse me if this is a duplicated.



-\heightoption to any other vertical measurement? To push down A-pic, I mean. – jfernandz Aug 21 '16 at 21:41\heightrefers to the height of the box to be raised (or lowered). – egreg Aug 21 '16 at 21:42\vspace{0pt}looks like a hack. Is this really intended in latex or rather a bug? Thanks for the advice. – Nikodem Mar 17 '23 at 16:00top alignedminipagehas its reference point at the first item inside. If it's\vspace{0pt}the precise top left; with text it's at the baseline of the first line. – egreg Mar 17 '23 at 16:57