# Align left and right same line

I have this problem:

Basically on the second line "Matricola: XXXXXX" isn't right aligned.

My latex is:

\begin{minipage}[t]{7cm}
\textsc{Relator}

Prof. NameName\\
\end{minipage}
\hfill
\begin{minipage}[t]{7cm}
\hfill \textsc{Candidato}

\hfill Name Name\\
\hfill Matricola: XXXXX
\end{minipage}


is there any way to fix this?

-

Don't use \hfill for the alignment, use \flushleft and \flushright:

\begin{minipage}[t]{7cm}
\flushleft
\textsc{Relator}

Prof. NameName\\
\end{minipage}
\hfill
\begin{minipage}[t]{7cm}
\flushright
\textsc{Candidato}

Name Name\\
Matricola: XXXXX
\end{minipage}

-
 it sounds good!.. – yes123 Oct 3 '12 at 11:14

A \hfill that occurs at the start of a line will be ignored. To avoid this, use \null\hfill in place of \hfill.

-