# How to align this block of text?

I have a problem. How can I put this text perfectly aligned on the right side, like the trying of the screenshot?

Is there a smarter way?

\noindent
\hspace*{8cm}
\hspace*{8cm}
Engenharia Civil da Universidade Católica de\\
\hspace*{8cm}
Brasília, como requerimento parcial para a\\
\hspace*{8cm}
obtenção do Título de Bacharel em Engenharia\\
\hspace*{8cm}
Civil.

• Place it in a minipage using \raggedright inside and an \hfill in front of the minipage. – Johannes_B Aug 23 '15 at 15:39
• @Johannes_B I was typing my answer while you posted your comment, which is essentially identical. I have changed the authorship of my answer as "community wiki". Hope this is alright for you. – RHertel Aug 23 '15 at 15:47

As suggested in the comment by @Johannes_B you could wrap the text into a minipage and use \hfill before the definition of the minipage, in order to place it on the right side of the page.

\documentclass{article}
\usepackage[T1]{fontenc} % for the rendering of accented characters
\usepackage[utf8]{inputenc}
\begin{document}
\hfill\begin{minipage}{0.6\textwidth}
\raggedright % obviates the need for explicit linebreaks