[Tex/LaTex] Background of mini page

colorminipage

In a ‘mini page’ environment, is there a way to have a back ground and then writing on top? Rather than just writing and a translucent background.

Best Answer

\documentclass{article} 
\usepackage[svgnames]{xcolor} 
\usepackage{blindtext}
\begin{document} 

\blindtext

\noindent
\fcolorbox{Brown}{Aqua}{\begin{minipage}{\dimexpr\linewidth-2\fboxsep-2\fboxrule} 
\color{Brown}\blindtext 
\end{minipage}} 

or

\noindent
\colorbox{Khaki}{\begin{minipage}{\dimexpr\linewidth-2\fboxsep} 
\blindtext 
\end{minipage}} 

\end{document}

enter image description here