[Tex/LaTex] Align text in \hfill environment

horizontal alignment

How can I arrange the text lines in the \hfill ? Is using a tabular environment the only way around this ?

\documentclass{letter} % Uses 10pt
\usepackage{marvosym} % add the symbols for email and phone contact data
\begin{document}

\begin{flushleft}
{\large\bf First Last}
\end{flushleft}
\medskip\hrule height 1pt
%%%%%%%%%%% how can I left align the different lines in this flushright ? %%%%%%%%%%%

\begin{flushright}
\hfill Address, Apt XXX\\
\hfill City, ST ZIP-XXXX\\
\hfill {\Large\Telefon} (XXX)-XXX-XXXX
\end{flushright} 

%%%%%%%%%%% how can I left align the different lines in this flushright ? %%%%%%%%%%%

\vfill % forces letterhead to top of page
\end{document}

Best Answer

Use a tabular with l@{} (fully left) alignment, for example.

\documentclass{letter} % Uses 10pt
\usepackage{marvosym} % add the symbols for email and phone contact data
\begin{document}

\begin{flushleft}
{\large\bf First Last}
\end{flushleft}
\medskip\hrule height 1pt
%%%%%%%%%%% how can I left align the different lines in this flushright ? %%%%%%%%%%%

\begin{flushright}
\begin{tabular}{l@{}}  %% as observed by Werner, use l@{} instead of l
 Address, Apt XXX\\
 City, ST ZIP-XXXX\\
 {\Large\Telefon} (XXX)-XXX-XXXX
\end{tabular}\end{flushright} 

%%%%%%%%%%% how can I left align the different lines in this flushright ? %%%%%%%%%%%

\vfill % forces letterhead to top of page
\end{document}

enter image description here

But if you want to push them to the right just use flushright

\begin{flushright}
 Address, Apt XXX\\
 City, ST ZIP-XXXX\\
 {\Large\Telefon} (XXX)-XXX-XXXX
\end{flushright} 

enter image description here

Related Question