FP97: Style Formatting Definitions Show as Text in FP Editor

Last reviewed: March 18, 1998
Article ID: Q163582
The information in this article applies to:
  • Microsoft FrontPage 98 for Windows
  • Microsoft FrontPage 97 for Windows with Bonus Pack

SYMPTOMS

Formatting definitions that are enclosed within a <style>...</style> element appear as text in the 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 the 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>

MORE INFORMATION

The comment (<!-- -->) element 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 (<!-- -->) element 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.

Problems produced by editing the HTML which FrontPage generates will not be resolved by Microsoft Technical Support. This HTML code sample is provided as a convenience for authors seeking to extend FrontPage capabilities. For more information on writing HTML, see

   http://www.microsoft.com/workshop/author/newhtml/default.htm

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft FrontPage 98 for Windows.


Additional query words: front page
Keywords : fpedit fphtml kbdta
Version : windows:97,98
Platform : WINDOWS
Hardware : x86
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 18, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.