CellMargins
✖
CellMargins
is an option for Cell that specifies the absolute margins in printer's points to leave around a cell.
Details

- Possible settings are:
-
m the 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.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (3)Survey of the scope of standard use cases
Put a large margin on the left:

https://wolfram.com/xid/0i1lfd55e-g0r9ie
Put a large margin on the right:

https://wolfram.com/xid/0i1lfd55e-fan16b
Put the same margins all around:

https://wolfram.com/xid/0i1lfd55e-rvdhj

https://wolfram.com/xid/0i1lfd55e-gxrhrk
Properties & Relations (4)Properties of the function, and connections to other functions
The space between consecutive cells c1 and c2 is bottom1+top2:

https://wolfram.com/xid/0i1lfd55e-i87tbd
Use CellFrame to frame the cell content area:

https://wolfram.com/xid/0i1lfd55e-e0b1o9
Use Background to style the cell content area:

https://wolfram.com/xid/0i1lfd55e-e3eloe
A CellDingbat will be placed immediately to the left of the cell content area:

https://wolfram.com/xid/0i1lfd55e-kldvcp
Wolfram Research (1996), CellMargins, Wolfram Language function, https://reference.wolfram.com/language/ref/CellMargins.html.
Text
Wolfram Research (1996), CellMargins, Wolfram Language function, https://reference.wolfram.com/language/ref/CellMargins.html.
Wolfram Research (1996), CellMargins, Wolfram Language function, https://reference.wolfram.com/language/ref/CellMargins.html.
CMS
Wolfram Language. 1996. "CellMargins." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CellMargins.html.
Wolfram Language. 1996. "CellMargins." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CellMargins.html.
APA
Wolfram Language. (1996). CellMargins. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellMargins.html
Wolfram Language. (1996). CellMargins. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellMargins.html
BibTeX
@misc{reference.wolfram_2025_cellmargins, author="Wolfram Research", title="{CellMargins}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/CellMargins.html}", note=[Accessed: 06-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_cellmargins, organization={Wolfram Research}, title={CellMargins}, year={1996}, url={https://reference.wolfram.com/language/ref/CellMargins.html}, note=[Accessed: 06-April-2025
]}