![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Wed, 23 Nov 2011, Kip Warner wrote:
I've been pulling my hair out for hours, as I can't seem to figure out how to set the margin with and height for a textbackground area so the text doesn't start immediately at the left frame line and go to the right frame line. I am using this:
\definetextbackground[FramedText][ location=paragraph, color=color_text, background=color, backgroundcolor=colour_page, framecolor=colour_text, leftoffset=1.0\bodyfontsize, rightoffset=1.0\bodyfontsize, before={ \blank \startnarrower }, after={ \blank \stopnarrower }, style=italic, corner=round, frame=on]
Why not just increase the value of leftoffset and rightoffset? \definetextbackground[FramedText][ location=paragraph, color=black, background=color, backgroundcolor=blue:2, framecolor=green:2, leftoffset=1cm, rightoffset=1cm, style=italic, corner=round, frame=on] \starttext \startFramedText \input knuth \endgraf \stopFramedText \stoptext Aditya