# Need linebreak when \fbox exceeds the text area

Need to align a "fbox", when exceeds the text area.

MWE:

\documentclass{article}

\begin{document}

Blah \fbox{Text within box in horizontal line} Blah ...

Blah \fbox{Text within box in horizontal line breaking if exceeds text area} Blah ...

\end{document}


While using \fbox, getting output like below:

Required output:

• Welcome to TeX.SX! A \fbox does not provide linebreaks, but a \parbox will do, however, it doesn't have a frame – user31729 Oct 16 '15 at 7:44
• – touhami Oct 16 '15 at 7:50
• Thanks, parbox` require width and treat as separate box not align with my required output. – Malathi Oct 16 '15 at 8:09
• can we achieve this without using [tikz] package... – Malathi Oct 16 '15 at 8:10