Invisible

Invisible[expr]
displays as space that is the same size as the formatted version of expr.

DetailsDetails

  • Invisible[expr] spans both the horizontal and vertical dimensions of expr.
  • Invisible[expr] has the same baseline alignment as expr.
  • Invisible["M"] gives space that is one em wide in the current font.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Display a blank space the same size as the formatted form of a given expression:

In[1]:=
Click for copyable input
Out[1]=

Here is the expression in visible form:

In[2]:=
Click for copyable input
Out[2]=

Use Invisible objects as column-width regulators in a grid:

In[1]:=
Click for copyable input
Out[1]=
New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »