I want make block in my document like javadoc method description (see figure)
I have wrotten a macro:
\def\makemybox{%
\noindent%
\fcolorbox[HTML]{9EADC0}[HTML]{F9F9F9}{%
\makebox[\textwidth]{%
\vbox{%
\noindent%
\fcolorbox[HTML]{9EADC0}[HTML]{DEE3E9}{%
\makebox[\textwidth][l]{\textbf{Method name}}
}\par%
\noindent%
\makebox[\textwidth][l]{Method description}
}
}
}}
but I get wrong boxes. See figure
How I can fix my macro? I tried to set \fboxsep but I had no result.
tcolorbox
package ctan.org/pkg/tcolorbox – nadous Mar 15 '15 at 10:20