is an option that specifies the labels associated with the frame around a cell.
CellFrameLabels
is an option that specifies the labels associated with the frame around a cell.
Details
- CellFrameLabels->{{left,right},{bottom,top}} specifies the labels to the left, right, bottom, and top of the cell frame, respectively. If None is given for a value, then no label will be shown.
- Cell frame labels can be specified as strings or raw cell expressions.
- CellFrameLabels->None is equivalent to giving a value of {{None,None},{None,None}}.
- A cell frame label will display even if there is no cell frame. If the cell has no frame but a specified background color, the labels will appear outside of the cell's background rectangle.
- The margin between the label and the cell's frame or background color is determined by CellFrameLabelMargins.
- Cell frame labels are displayed using a style inherited from their parent cell.
Examples
open all close allBasic Examples (2)
CellPrint[TextCell[StringJoin[Table["abcd ", {20}]], "Text", CellFrame -> True, CellMargins -> {{200, 200}, {10, 10}}, CellFrameLabels -> {{"left", "right"}, {"bottom", "top"}}]]Specify a label as a Cell expression:
CellPrint[TextCell[StringJoin[Table["abcd ", {20}]], "Text", CellFrame -> True, CellMargins -> {{200, 200}, {10, 10}}, CellFrameLabels -> {{Cell["123", "Input", Brown], None}, {None, None}}]]Scope (3)
Display a cell frame label without a cell frame:
CellPrint[TextCell[StringJoin[Table["abcd ", {20}]], "Text", CellMargins -> {{200, 200}, {10, 10}}, CellFrameLabels -> {{"left", "right"}, {"bottom", "top"}}]]Cell frame labels use the same cell style as their parent cell:
CellPrint[TextCell[StringJoin[Table["abcd ", {20}]], "Text", CellMargins -> {{200, 200}, {10, 10}}, FontColor -> #, CellFrameLabels -> {{"left", "right"}, {"bottom", "top"}}]]& /@ {Red, Blue};Display cell frame labels for a cell with a background color and no frame:
CellPrint[TextCell[StringJoin[Table["abcd ", {20}]], "Text", CellMargins -> {{200, 200}, {10, 10}}, Background -> LightGreen, CellFrameLabels -> {{"left", "right"}, {"bottom", "top"}}]]Generalizations & Extensions (1)
To use a TextCell or ExpressionCell expression, apply ToBoxes:
CellPrint[TextCell[StringJoin[Table["abcd ", {20}]], "Text", CellFrame -> True, CellFrameLabels -> {{ToBoxes[ExpressionCell[Graphics[Disk[], ImageSize -> 20]]], None}, {None, None}}]]Properties & Relations (1)
Cell frame labels display within cell margins:
CellPrint[TextCell[StringJoin[Table["abcd ", {20}]], "Text", CellMargins -> {{200, 200}, {10, 10}}, CellFrameLabels -> {{"left", "right"}, {None, None}}]]A bigger cell label forces the cell contents into a smaller area:
CellPrint[TextCell[StringJoin[Table["abcd ", {20}]], "Text", CellMargins -> {{200, 200}, {10, 10}}, CellFrameLabels -> {{"leftleftleft", "rightrightright"}, {None, None}}]]Similarly, a larger CellFrameLabelMargins compresses the cell contents area:
CellPrint[TextCell[StringJoin[Table["abcd ", {20}]], "Text", CellMargins -> {{200, 200}, {10, 10}}, CellFrameLabels -> {{"left", "right"}, {None, None}}, CellFrameLabelMargins -> 50]]Related Guides
Related Workflows
- Put a Frame around a Cell
History
Introduced in 1999 (4.0)
Text
Wolfram Research (1999), CellFrameLabels, Wolfram Language function, https://reference.wolfram.com/language/ref/CellFrameLabels.html.
CMS
Wolfram Language. 1999. "CellFrameLabels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CellFrameLabels.html.
APA
Wolfram Language. (1999). CellFrameLabels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellFrameLabels.html
BibTeX
@misc{reference.wolfram_2026_cellframelabels, author="Wolfram Research", title="{CellFrameLabels}", year="1999", howpublished="\url{https://reference.wolfram.com/language/ref/CellFrameLabels.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_cellframelabels, organization={Wolfram Research}, title={CellFrameLabels}, year={1999}, url={https://reference.wolfram.com/language/ref/CellFrameLabels.html}, note=[Accessed: 13-June-2026]}