i wanted to edit my floats. Found the package floatrow and got the desired frames easily for them. Now i would like to add a backgroundcolor to the captions. The problem is that the \parbox, i inserted to captionsetup, is bigger than the frame of the float and doesn't end up with the frame.
I wrote an example:
\documentclass{article}
\usepackage{caption}
\usepackage{floatrow}
\floatsetup[figure]{framestyle=fbox,
framearound=all,rowfill=yes}
\DeclareCaptionFormat{box}{
\colorbox{red}{\parbox{\textwidth}{#1#2#3}}
}
\captionsetup[figure]{format=box}
%%
\begin{document}
\begin{figure}
TEST TEST TEST
\caption{BLA}
\end{figure}
\end{document}
