-
See Also
- CellMargins
-
- Menu Items
- Elide with Tear
-
-
See Also
- CellMargins
-
- Menu Items
- Elide with Tear
-
See Also
is an option for cells that specifies the width and height of an inline cell.
CellSize
is an option for cells that specifies the width and height of an inline cell.
Details
- The default value of CellSize{Automatic,Automatic} imposes no constraints on the cell's size, allowing the cell's contents to determine its natural size.
- CellSize->{w,h} specifies the width and height of a cell in printer's points, where 72 points equal one inch. If w or h is given as Automatic, then that dimension will be determined by the natural size.
- Top-level cells ignore the width setting of CellSize. Inline cells can be set in both dimensions.
- Top-level cells with a height set to a fixed number of points will produce a small drag handle at the bottom of their cell brackets. You can use the mouse to click and drag the handle to resize the cell interactively.
Examples
open all close allBasic Examples (2)
Scope (4)
A top-level cell can be made shorter than its content:
CellPrint[ExpressionCell[Graphics[Disk[]], "Print", CellSize -> {Automatic, 30}]]CellPrint[ExpressionCell[1, "Print", CellSize -> {Automatic, 50}]]Top-level cells ignore the width setting:
CellPrint[ExpressionCell[Graphics[Disk[]], "Print", CellSize -> {20, Automatic}]]Inline cells will take the exact dimensions given regardless of content:
ExpressionCell["cell", Background -> StandardBlue, CellSize -> {40, 30}]Inline cell width can constrain word-wrapping width:
ExpressionCell[Range[20], CellSize -> {80, Automatic}, Background -> StandardBlue]It can also constrain automatic graphic sizing:
ExpressionCell[Graphics3D[Cuboid[]], CellSize -> {80, Automatic}, Background -> StandardBlue]Properties & Relations (1)
The menu item Cell ▶ Elide with Tear implements its sizing constraint with CellSize:
CurrentValue[EvaluationCell[], CellSize]Possible Issues (1)
Contents with fixed-size elements may be clipped by the CellSize width or height:
ExpressionCell[Graphics[Disk[], ImageSize -> 200], CellSize -> {80, 30}]History
Introduced in 1999 (4.0)
Text
Wolfram Research (1999), CellSize, Wolfram Language function, https://reference.wolfram.com/language/ref/CellSize.html.
CMS
Wolfram Language. 1999. "CellSize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CellSize.html.
APA
Wolfram Language. (1999). CellSize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellSize.html
BibTeX
@misc{reference.wolfram_2026_cellsize, author="Wolfram Research", title="{CellSize}", year="1999", howpublished="\url{https://reference.wolfram.com/language/ref/CellSize.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_cellsize, organization={Wolfram Research}, title={CellSize}, year={1999}, url={https://reference.wolfram.com/language/ref/CellSize.html}, note=[Accessed: 13-June-2026]}