Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Notebooks and Documents > Notebook Formatting & Styling > Cell Styling Options >
Mathematica > Notebooks and Documents > Notebook Formatting & Styling > Stylesheets > Cell Styling Options >

CellMargins

CellMargins
is an option for Cell which specifies the absolute margins in printer's points to leave around a cell.
  • Possible settings are:
mthe same margins on all sides
{{left,right},{bottom,top}}different margins on different sides
  • The left margin gives the distance from the edge of the window to the left-hand side of the cell.
  • The right margin gives the distance from the inside of the cell bracket to the right-hand side of the cell.
  • The left and right margins can be set interactively in the front end using Show Ruler.
  • The top and bottom margins determine the amount of space to leave above and below the cell.
  • The margins go to the edge of any cell frame that is present.
  • Cell dingbats are placed to the left of the left-hand side of the cell, and extend into the left cell margin.
Specify cell margins:
Specify cell margins:
In[1]:=
Click for copyable input
abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde abcde
Put a large margin on the left:
Put a large margin on the right:
Put the same margins all around:
Using a single number:
The space between consecutive cells c1 and c2 is bottom1+top2:
Use CellFrame to frame the cell content area:
Use Background to style the cell content area:
A CellDingbat will be placed immediately to the left of the cell content area:
New in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team