0
$\begingroup$

How can I align elements in column when SpanFromAbove is used?

Using the example given in documentation for Grid

Grid[Table[RandomChoice[{SpanFromLeft, SpanFromAbove,
Item[RandomInteger[1000],Background -> Hue[RandomReal[], .2, .9]]}], {20}, {12}],
Frame -> All, Alignment -> Center]

results:

enter image description here

The SpanFromLeft row elements are centered but not the ones from SpanFromAbove column.

$\endgroup$

1 Answer 1

1
$\begingroup$

Use

Alignment -> {Center, Center}
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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