Bug introduced in V10.4 or earlier and persists through V11.3

, DockedCells -> Flatten @ {
      BoxData @ ToBoxes[Framed[InputForm@#, Background -> White]]
    , CellFrameMargins -> 15
    , CellMargins -> {{0, 0}, {0, 0}}
    , Background -> #
    ] & /@ {
      Inherited, Red, GrayLevel[1.], None, GrayLevel[.99], Blue

Apparently you can not have White Background for a DockedCells.

And if you do not obey they will take your margins, too!

enter image description here

Any reasonable explanation?

Notice the None case is documented:

If Background->None is set, then the margins are only applied if a CellFrame is present. If the cell frame is not drawn on all sides, then the margin will only be applied to the sides with a frame setting.

V11.2 Win7

[CASE:3975061] was created

  • 1
    $\begingroup$ Not the same for me (OSX, mma 11.2.0) : background is white for GrayLevel[1.] and None. Why Inherited gives gray ? $\endgroup$
    – SquareOne
    Commented Nov 23, 2017 at 8:05
  • $\begingroup$ @SquareOne Inherited inherits from "DockedCell" style even if it is not present explicitly in a docked cell, not really documented :) $\endgroup$
    – Kuba
    Commented Nov 23, 2017 at 8:10

1 Answer 1


[...] It does appear as though DockedCells cannot have White as their Background specification. I have filed a report with our developers regarding this incorrect limitation so that they may investigate and look to address the issue in a future release. [...]

- WRI Support

The workaround is to use 'almost' white:

, DockedCells -> Cell[
    BoxData @ ToBoxes[Framed[InputForm@GrayLevel[.999]]]
  , CellFrameMargins -> 15
  , CellMargins -> {{0, 0}, {0, 0}}
  , Background -> GrayLevel[.999]

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.