FP98: Cannot Change Font Attributes of Table of Contents Component (183254)



The information in this article applies to:

  • Microsoft FrontPage 98 for Windows

This article was previously published under Q183254

SYMPTOMS

Font formatting that you applied to your table of contents appears in FrontPage Editor, but it does not appear in the preview with you open the page in a Web browser.

CAUSE

FrontPage does not write the font information for the table of contents to the page. The Table of Contents component uses only heading tags (such as H1, H2, or H3). FrontPage does not apply any other font or style formatting to the list.

RESOLUTION

To work around this behavior you can use cascading style sheets (CSS) to define the styles for the heading attributes. To do this, follow these steps:
  1. Open the page that contains the Table of Contents component in FrontPage Editor.
  2. On the Format menu, click Stylesheet.
  3. Place the insertion point on a line by itself between the opening comment (<!--) tag and the closing comment (-->) tag.
  4. Type the heading size you specified in the Table of Contents Properties dialog box. For example, if you specified a heading size of 2, type H2.
  5. Click Style. In the Style dialog box, define a style for your heading. For example, select a font size of 36 points. Click OK.
  6. Place the insertion point on the next line.
  7. Type a.
  8. Click Style. In the Style dialog box, define a style for the hyperlinks. For example, select Italic in the Font Style box. Click OK.

    The Format Stylesheet dialog box should contain code similar to this:
          <style>
          <!--
          H2 { font-size: 36pt }
          a { font-style: italic }
          -->
          </style>
    						
  9. Click OK.
NOTE: For the current page you have open, any styles you define will apply to all hyperlinks and paragraphs with the heading size you specified.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

MORE INFORMATION

For additional information, please see the following article in the Microsoft Knowledge Base:

179628 FP98: What are Cascading Style Sheets?

180827 FP98: How to Create Cascading Style Sheets in FrontPage 98


Modification Type:MajorLast Reviewed:12/1/2000
Keywords:kbbug KB183254