({{, (RefLink[ContentPadding, paclet:ref/ContentPadding]) 
is an option for objects that can be displayed with frames that specifies whether the vertical margins should shrink wrap tightly around the contents.}})

OpenersNotesSection(Spacer1)Details

With the setting (RefLink[ContentPadding, paclet:ref/ContentPadding])->(RefLink[True, paclet:ref/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 (RefLink[ContentPadding, paclet:ref/ContentPadding])->(RefLink[False, paclet:ref/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 (RefLink[FrameMargins, paclet:ref/FrameMargins]) to the margin area controlled by (RefLink[ContentPadding, paclet:ref/ContentPadding]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

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

Button["..."]

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

Button["...",ContentPadding->False]

Compare margins for labels with and without ascenders and descenders:

Row[Map[Framed[#,ContentPadding->False,BaselinePosition->(Baseline->Baseline)]&,{"Ày","À","A","y","a"}]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[FrameMargins, paclet:ref/FrameMargins])  ▪  (RefLink[FieldSize, paclet:ref/FieldSize])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Controls Options, paclet:guide/ControlsOptions])}})}})