0

I have create a parbox as below that I would like to have a margin between the border the text for top, bottom, left, and right:

\begin{center}\shadowbox{\parbox{0.85\textwidth}{text text text}}\end{center}

Can anyone enlighten me? Thanks!

2

The distance to the frame is controlled by \fboxsep. This can in fact be found in the documentation (PDF):

enter image description here

\documentclass{article}
\usepackage{fancybox}
\begin{document}
\begin{center}
  \setlength\fboxsep{1cm}
  \shadowbox{\parbox{0.85\textwidth}{text text text}}
\end{center}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.