Associating Stylesheets Locally With Specific Files

You can associate one or more stylesheets with a document so that you can use its styles.

How to Associate Stylesheets With a Single File

  1. Open the content file (e.g., topic, template page, snippet) to with which you want to associate the stylesheet.

  2. Select Home > Stylesheet Links. The Stylesheet Links dialog opens.

  3. Do one of the following:

    • On the left side of the dialog, select the stylesheet(s) that you want to associate with the file. Then click to add the stylesheet(s) to the Current Links section on the right.
    • Double-click the stylesheet(s) that you want to associate with the topic. The stylesheet is added to the Current Links section on the right.

    Note If you associate multiple stylesheets with the content file, the last one you selected is the most recent one (the one on the bottom of the list) and therefore has precedence over the others. However, you can use the up and down arrows to change the order of the stylesheets.

    Note If the stylesheet does not yet exist, you can click Add to create a new stylesheet.

  4. Click OK. The stylesheet is now associated with the file, and the look of the content file changes in the XML Editor accordingly.

  5. Click Save the active file. to save your work.

Note This feature is not supported for MadCap Lingo review package (LIREV) files.

What’s Next?

After you associate a stylesheet with a file, you can apply styles from the stylesheet to content in the file. You can also create new styles, adding them to the stylesheet. See Applying Styles to Content and Creating Selectors.