This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Framed

Updated In 8 Graphic
Framed[expr]
displays a framed version of expr.
  • The following options can be given:
BackgroundNonebackground color
BaselinePositionAutomaticalignment relative to surrounding text
FrameMarginsAutomaticmargins to leave inside the frame
FrameStyleAutomaticgraphics directives giving a style for the frame
ImageMargins0margins around the image of the displayed frame
RoundingRadius0radius for rounded corners
ContentPaddingTruewhether to shrink the margins tightly around the contents
  • If expr wraps onto multiple lines, the baseline of Framed[expr] is taken to be the baseline of the first line of expr.
  • RoundingRadius->r specifies rounded corners consisting of quarter circles with a radius of r printer's points.
Put a frame around any expression:
Put a frame around any expression:
In[1]:=
Click for copyable input
Out[1]=
Put a frame around any object:
Use a background color:
Use a style for the frame:
Use rounded corners:
Text can linewrap inside a frame:
Different framed expressions align as if their frames were not present:
Change the background color:
Bottom align a series of frames:
Add margins within the frame:
Change the frame style:
Add margins outside the frame:
Use rounded corners:
Frame integers that are prime:
Panel provides additional features for framing objects:
Many functions have a Frame option:
New in 6 | Last modified in 8