Adding content to a layer


    Layers can contain any valid HTML element, such as text and images. However, Web browsers may have problems with layers that contain tables or layout grids. If you embed a layer within another layer, the embedded box will inherit any CSS information from the parent layer.

    Note: Avoid using a background image alone in a layer. In Netscape browsers, background images or color may not display unless there are other objects or text in the box as well. To work around this problem, you can add a transparent GIF image to the empty box. See Adding special page elements.

To add content to a layer:

    Click in the layer and type or drag an image or other site asset from the site window or Objects palette into the layer.

To add a background color or image to a layer:

  1. Select the layer.
  2. In the Layer Inspector, do one of the following:
    • Select BgImage, and then select an image file.
    • Select Color, click the color field, and select a color from the Color or Swatches palette. Or, click the lower right corner of the color field in the Inspector and select a color from the swatches that appear (the swatches are based on the current settings in the Swatches palette).

    TipYou can set the contents of a layer to be invisible when the page is first loaded into the browser. (See Hiding and showing layers.)