Applying a class style

Class styles are the only type of CSS style that can be applied to any text in a document, regardless of which tags control the text. All class styles associated with the current document are displayed in the CSS Styles panel (with a period [.] preceding their name) and in the Style pop-up menu of the text Property inspector.

You'll see most styles updated immediately, however, you should preview your page in a browser to verify a style was applied as expected. When you apply two or more styles to the same text, the styles may conflict and produce unexpected results. For more information, see About conflicting CSS rules.

To apply a custom CSS style:

  1. In the document, select the text to which you want to apply a CSS style.

    Place the insertion point in a paragraph to apply the style to the entire paragraph.

    If you select a range of text within a single paragraph, the CSS style affects only the selected range.

    To specify the exact tag to which the CSS style should be applied, select the tag in the tag selector located at the lower left of the Document window.

  2. To apply a class style, do one of the following:

To remove a custom style from a selection:

  1. Select the object or text you want to remove the style from.
  2. In the text Property inspector (Window > Properties), select None from the Style pop-up menu.

Related topics