Framed
✖
Framed
Updated in 14

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 allclose allBasic Examples (1)Summary of the most common use cases
Scope (7)Survey of the scope of standard use cases
Put a frame around any object:
In[1]:=1

✖
https://wolfram.com/xid/0y770m-z8ohd
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0y770m-fjbazx
Out[2]=2

In[1]:=1

✖
https://wolfram.com/xid/0y770m-ew02fr
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0y770m-ljmlis
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0y770m-brepr1
Out[1]=1

Text can linewrap inside a frame:
In[1]:=1

✖
https://wolfram.com/xid/0y770m-d7wbda
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0y770m-ttl3b
Out[1]=1

Different framed expressions align as if their frames were not present:
In[1]:=1

✖
https://wolfram.com/xid/0y770m-gu8w7b
Out[1]=1

Options (11)Common values & functionality for each option
Alignment (1)
Background (1)
BaselinePosition (1)
BaseStyle (1)
ContentPadding (1)
FrameMargins (1)
FrameStyle (2)
In[1]:=1

✖
https://wolfram.com/xid/0y770m-k9aa6t
Out[1]=1

Framed does not support the side specifications of FrameStyle:
In[1]:=1

✖
https://wolfram.com/xid/0y770m-rkm9l
Out[1]=1

ImageMargins (1)
ImageSize (1)
Applications (1)Sample problems that can be solved with this function
Properties & Relations (2)Properties of the function, and connections to other functions
Neat Examples (1)Surprising or curious use cases
In[1]:=1

✖
https://wolfram.com/xid/0y770m-ivigl
Out[1]=1

Wolfram Research (2007), Framed, Wolfram Language function, https://reference.wolfram.com/language/ref/Framed.html (updated 2024).
✖
Wolfram Research (2007), Framed, Wolfram Language function, https://reference.wolfram.com/language/ref/Framed.html (updated 2024).
Text
Wolfram Research (2007), Framed, Wolfram Language function, https://reference.wolfram.com/language/ref/Framed.html (updated 2024).
✖
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.
✖
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
✖
Wolfram Language. (2007). Framed. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Framed.html
BibTeX
✖
@misc{reference.wolfram_2025_framed, author="Wolfram Research", title="{Framed}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/Framed.html}", note=[Accessed: 16-April-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_framed, organization={Wolfram Research}, title={Framed}, year={2024}, url={https://reference.wolfram.com/language/ref/Framed.html}, note=[Accessed: 16-April-2025
]}