1
$\begingroup$

I recently asked a question regarding adjusting adjacent cells' margins to make their background color appear continuous.

With these settings in place, I'd like to put a single frame around the entire block of cells as described in the pic below. I can't seem to find any options within the Options Inspector.

enter image description here

$\endgroup$
0
2
$\begingroup$

Perhaps

CellPrint[CellGroup[{TextCell[StringJoin[Table["abcd ", {20}]], "Text",
    CellFrame -> {{1, 1}, {0, 1}}, CellMargins -> {{200, 200}, {0, 10}}], 
 TextCell[StringJoin[Table["abcd ", {20}]], "Text", 
    CellFrame -> {{1, 1}, {0, 0}}, CellMargins -> {{200, 200}, {0, 0}}], 
 TextCell[StringJoin[Table["abcd ", {20}]], "Text", 
    CellFrame -> {{1, 1}, {1, 0}}, CellMargins -> {{200, 200}, {10, 0}}]}]]

Mathematica graphics

$\endgroup$
2
  • $\begingroup$ Works great! I had assumed the default options had to be a fixed constant judging by the fact that the default setting for CellFrame is 0.8. Thanks! $\endgroup$
    – user170231
    May 28 '15 at 14:25
  • $\begingroup$ @user170231, glad it was useful. Thank you for the accept. $\endgroup$
    – kglr
    May 28 '15 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.