is an option for objects that can be displayed with frames that specifies whether the vertical margins should shrink wrap tightly around the contents.


  • With the setting ContentPadding->True, the height of the content area of a framed object will be an integer multiple of full line heights, even if the contents of a given line do not span the full height of the line.
  • A setting of ContentPadding->False shrinks the content area tightly around the contents instead of rounding to the next full line height.
  • The internal margin of a framed object is set by adding the value of FrameMargins to the margin area controlled by ContentPadding.


Basic Examples  (2)

By default, a button spans the full line height of the font used to populate its contents:

Create a button that is shorter than the line height for the font it uses:

Compare margins for labels with and without ascenders and descenders:

Wolfram Research (2010), ContentPadding, Wolfram Language function,


Wolfram Research (2010), ContentPadding, Wolfram Language function,


@misc{reference.wolfram_2020_contentpadding, author="Wolfram Research", title="{ContentPadding}", year="2010", howpublished="\url{}", note=[Accessed: 19-April-2021 ]}


@online{reference.wolfram_2020_contentpadding, organization={Wolfram Research}, title={ContentPadding}, year={2010}, url={}, note=[Accessed: 19-April-2021 ]}


Wolfram Language. 2010. "ContentPadding." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2010). ContentPadding. Wolfram Language & System Documentation Center. Retrieved from