Use Style Sheets

You can use style sheets to define the overall layout and type specifications of the HTML output. HTML Export can write style sheet information to an external Cascading Style Sheet (CSS) file or read the information from an existing CSS file during the conversion. The formatting data can be stored either within the output HTML file (inline) or externally in a CSS file. Using an external style sheet makes the HTML output significantly smaller and enables you to use the same style sheet for many conversions.

NOTE: Note: Cascading style sheets can be used only with word processing documents.

To enable CSS formatting and output the generated formatting data within the output HTML stream, set the style sheet type to inline by using one of the following methods:

To enable CSS formatting and output the generated formatting data in an external CSS file that is referenced in the HTML output as a tag

  1. Set the style sheet type to an external file by using one of the following methods:

  2. In the template file, use the $STYLESHEET token to specify the URL of the style sheet in the HTML output. The external CSS file is referenced in the output HTML by a LINK statement of the form:

    <LINK rel="STYLESHEET" href="CSS_file" type="text/css">
  3. Call the setExternalStyleFile method of the Export object to set the path and file name of the style sheet file.


_HP_HTML5_bannerTitle.htm