Help and Support

Article ID: 163582 - Last Review: October 1, 2001 - Revision: 1.0

FP97: Style Formatting Definitions Show as Text in FP Editor

This article was previously published under Q163582

For a Microsoft FrontPage 98 version of this article, see 194346  (http://support.microsoft.com/kb/194346/EN-US/ ) .
Expand all | Collapse all

SYMPTOMS

Formatting definitions that are enclosed within a <style>...</style> element appear as text in FrontPage Editor.

NOTE: Web browsers that do not support the <style>...</style> element also interpret the formatting definitions as text.

CAUSE

FrontPage Editor interprets the instructions within the <style>...</style> element as text.

RESOLUTION

To ensure that the formatting definitions are not displayed as text when you view your page in FrontPage Editor or a Web browser that does not support the <style>...</style> element, place the formatting definitions inside a comment (<!-- -->) tag. For example, to hide the font formatting in this code:
   <style>
   H1{font:18pt "Arial"; font-weight:bold; text-aligh:center}
   </style>
				
change your code so that it looks like this:
   <style>
   <!--
   H1{font:18pt "Arial"; font-weight:bold; text-aligh:center}
   -->
   </style>
				

STATUS

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

MORE INFORMATION

The comment (<!-- -->) tag does not prevent the formatting instructions from being used by a Web browser that supports the <style>...</style> element. When you place formatting definitions inside a comment (<!-- -->) tag within a <style>...</style> element, you ensure that this information is not interpreted as text by a Web browser that does not support the <style>...</style> element.

APPLIES TO
  • Microsoft FrontPage 97 Standard Edition
Keywords: 
kbprb KB163582
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Article Translations