Setting a layer’s initial visibility

You can specify that a layer be initially invisible when the document is opened in a browser. Later, a script can make the layer visible as a result of some event, such as the user clicking a link.

You can specify any of four initial states for the visibility of a layer:

  • Show: The layer is initially visible.
  • Hide: The layer is initially invisible.
  • Inherit: The initial visibility of the layer is the same as that of its parent element.
  • Default: (same as Show)
To set a layer’s initial visibility
  1. Double-click the layer’s outline or layer markA small icon, visible only in Edit mode, that marks the location of a layer tag in the document. to select it.
  2. On the Layer Properties dialog box, click the Visibility box and select an option.
To select a hidden layer

Do one of the following:

  • Click its layer markA small icon, visible only in Edit mode, that marks the location of a layer tag in the document..
  • Click its name in the Layers window. (To open the Layers window: On the View menu, go to the Panel group, and then select Layers.)

Namo Web Editor icon note Setting a layers initial visibilityAlthough a hidden layer is invisible, it still “takes up space” in one sense: If a hidden layer extends beyond the bottom or right edge of the browser window, the browser’s scrollbar(s) will be enabled as if the layer were visible. If you wish to avoid this, you can set the layer’s display property to “none” in HTML mode instead of using the Visibility option.

Related topics

Adding JavaScript effects

Setting a layer’s initial visibility