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


displays as an overlay of all the .
displays as an overlay of , , ....
allows selections to be made and controls to be clicked in .
  • The can be graphics, text, or any other expressions.
  • In Overlay the later are rendered on top of earlier ones.
  • Overlay[exprs] by default allows no selection within the exprs.
  • The following options can be given:
Alignment{Automatic,Automatic}how to align objects in the display area
BackgroundNonebackground color to use
BaselinePositionAutomaticwhat to align with a surrounding text baseline
BaseStyle{}base style specifications for the displayed object
FrameMarginsAutomaticmargins to leave inside the overall frame
ImageMargins0margins around the image of the displayed object
ImageSizeAllthe overall image size for the displayed object
  • With the default option setting ImageSize->All, Overlay always leaves space for the largest of the to be displayed, so that its overall size does not change.
  • The settings for BaseStyle are appended to the default style given by the style in the current stylesheet.
Overlay two expressions:
Overlay two graphics:
Overlay two expressions:
Click for copyable input
Overlay two graphics:
Click for copyable input
Overlay many objects:
Overlay two-dimensional and three-dimensional graphics:
Overlay text and graphics:
Use a nondefault ordering:
Allow clicks in the back layer:
Overlay with a single element is similar in behavior to a PaneSelector:
Align objects:
Set the background:
Make a new character from existing characters:
Watermark an output:
Create an image map using invisible controls overlaid onto an image:
The controls create a photorealistic, fully functional numeric keypad:
Use Overlay to make a fading transition effect:
Create a decorative frame for a 3D object which can still be rotated:
New in 8