- Assign a Style Sheet to a Document
- Assign a Style Sheet to a Document
- "55463551-8439-42e1-947f-fa8f124b7bed
- To use styles in a web page, the style sheet containing those styles must be assigned as a property of the web page document. There are several ways to assign (link) a style sheet to a web page.
- : You can assign a default style sheet in the
- Assign a default style sheet
- Web Page category
- : For existing documents, use the Style Sheet property in the General category of the Properties toolpane to assign or change the style sheet from the Library, Outline Editor, or Web Page Editor. To assign a style sheet to a web page from the Outline Editor, you must change the Properties toolpane view to Concepts. See
- Manually assign a style sheet
- Use the Properties Toolpane
- : Style sheets are assigned to modules, sections, and topics for inheritance purposes only. Web page concepts created in the Outline Editor automatically inherit the style sheet property of their parent. Furthermore, when you create a new module, you can use the Style Sheet property in the New Module dialog box to assign a style sheet to this document. Then, all new documents that you link to this module will inherit the style sheet setting.
- Inherit a style sheet
- You cannot link a style sheet to a file in a package; therefore styles are not available to HTML pages created in a package.
- Note:
- Multi-user Considerations
- To change general, topic, and document output properties, you must check out the document. A message appears at the bottom of the toolpane if any of the documents in a selection are read-only. You can change general, topic and document output properties while working online or offline.
- Check In and Check Out Documents
- To assign a style sheet to a document:
- From the Library, Outline Editor, or Web Page Editor, display the Properties toolpane.
- From the Library or Outline Editor, select the document to which you want to assign a style sheet.
- In the
- General
- Style Sheet
- In the Select a Style Sheet Document dialog box, navigate to the desired style sheet and click
- Open
- To remove a style sheet assigned to a document:
- From the Library, Outline Editor, or Web Page Editor, display the Properties toolpane.
- From the Library or Outline Editor, select the document from which you want to remove an assigned style sheet.
- In the General category, click the Style Sheet property name and press DELETE to clear the field.