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

Background

Background
is an option that specifies what background color to use.
  • The setting for Background can be any color or opacity specification.
  • When an object has option Background->color, the specified color will normally be used as a background throughout the region defined by the object.
  • Style specifies that color should be used as the background only for the region defined by the bounding box of expr.
  • In constructs such as Grid, Item can be used to specify that a background should fill the complete region for a particular item.
  • In a cell, the background is used only for the region inside any cell frame.
  • Background->None specifies that no background should be used, so that in effect the background is transparent.
  • Background->Automatic specifies a background that follows the system appearance for the particular object or window used. For Inset, Background->Automatic specifies that the background should be taken from the graphic in which it appears.
  • For objects such as Grid, Column, and Row, the setting for Background can be a list that specifies backgrounds for individual columns, rows or elements.
Insert a background color behind any expression:
A background for graphics:
Insert a background color behind any expression:
In[1]:=
Click for copyable input
Out[1]=
 
A background for graphics:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Draw a grid with a light red background:
Draw the first item with a light blue background:
Light blue and light red backgrounds for the first and second horizontal positions:
Light blue and light red backgrounds for the first and last horizontal positions:
Light blue and light red backgrounds for the first and second vertical positions:
Alternating light blue and light red backgrounds:
Alternating background with pink superimposed in the first and last positions:
Set the background for a subregion of the grid:
Show a table with alternating row background colors:
Background color can be seen through a transparent object:
Show 3D objects against a dark background:
New in 2 | Last modified in 6