Framed[expr]
displays a framed version of expr.
Framed
Framed[expr]
displays a framed version of expr.
Details and Options
- The following options can be given:
-
Background None background color BaselinePosition Automatic alignment relative to surrounding text BaseStyle {} base style specifications for the frame ContentPadding True whether to shrink the margins tightly around the contents FrameMargins Automatic margins to leave inside the frame FrameStyle Automatic graphics directives giving a style for the frame ImageMargins 0 margins around the image of the displayed frame ImageSize Automatic the overall image size of the displayed frame RoundingRadius 0 radius for rounded corners - If expr wraps onto multiple lines, the baseline of Framed[expr] is taken to be the baseline of the first line of expr.
- The option setting FrameStyle->None draws no explicit frame.
- RoundingRadius->r specifies rounded corners consisting of quarter circles with a radius of r printer's points.
- Frame thickness can be specified using settings such as FrameStyle->Thick.
Examples
open all close allScope (7)
Put a frame around any object:
Framed[Graphics3D[Sphere[], ImageSize -> Tiny]]Framed[TabView[{a, b, c}]]Framed[1 / x + y + z, Background -> Pink]Framed[1 / x + y + z, FrameStyle -> Red]Framed[1 / x + y + z, RoundingRadius -> 10]Text can linewrap inside a frame:
Framed[100!]Put a frame around every item in a list:
Table[Framed[i!], {i, 10}]Different framed expressions align as if their frames were not present:
{Framed[1 / x], Framed[x], Framed[x ^ 2]}Options (11)
Alignment (1)
Background (1)
BaselinePosition (1)
BaseStyle (1)
ContentPadding (1)
FrameMargins (1)
FrameStyle (2)
Framed[x + y, FrameStyle -> Red]Framed does not support the side specifications of FrameStyle:
Framed[x + y, FrameStyle -> {Red, Blue, Green, Brown}]ImageMargins (1)
ImageSize (1)
Applications (1)
Properties & Relations (2)
Panel provides additional features for framing objects:
{Panel[1 / x + y], Framed[1 / x + y]}Many functions have a Frame option:
{Grid[{{1, 2}, {3, 4}}, Frame -> True], Framed[Grid[{{1, 2}, {3, 4}}]]}{Plot[Sin[x], {x, 0, 2}, Frame -> True], Framed[Plot[Sin[x], {x, 0, 2}]]}Possible Issues (1)
A large rounding radius may lead to contents bleeding past the corners:
Framed[Graphics[{StandardBlue, Rectangle[]}, ImageSize -> 80], RoundingRadius -> 35]Increase the frame margins to resolve the issue:
Framed[Graphics[{StandardBlue, Rectangle[]}, ImageSize -> 80], RoundingRadius -> 35, FrameMargins -> 10]Alternatively, reducing the rounding radius:
Framed[Graphics[{StandardBlue, Rectangle[]}, ImageSize -> 80], RoundingRadius -> 10]Tech Notes
Related Workflows
- Put a Frame Around a Cell
Related Links
-

An Elementary Introduction to the Wolfram Language
: Ways to Apply Functions
-

An Elementary Introduction to the Wolfram Language
: Pure Anonymous Functions
-

An Elementary Introduction to the Wolfram Language
: Applying Functions Repeatedly
-

An Elementary Introduction to the Wolfram Language
: More about Pure Functions
-

An Elementary Introduction to the Wolfram Language
: Layout and Display
History
Introduced in 2007 (6.0) | Updated in 2008 (7.0) ▪ 2010 (8.0) ▪ 2024 (14.0)
Text
Wolfram Research (2007), Framed, Wolfram Language function, https://reference.wolfram.com/language/ref/Framed.html (updated 2024).
CMS
Wolfram Language. 2007. "Framed." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/Framed.html.
APA
Wolfram Language. (2007). Framed. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Framed.html
BibTeX
@misc{reference.wolfram_2026_framed, author="Wolfram Research", title="{Framed}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/Framed.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_framed, organization={Wolfram Research}, title={Framed}, year={2024}, url={https://reference.wolfram.com/language/ref/Framed.html}, note=[Accessed: 13-June-2026]}