Microsoft KB Archive/180827

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

Article ID: 180827

Article Last Modified on 6/18/2005

-

APPLIES TO


 * Microsoft FrontPage 98 Standard Edition

-



This article was previously published under Q180827



SUMMARY
This article describes how to create an external, embedded, and inline Cascading Style Sheet (CSS).



MORE INFORMATION
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. NOTES:
 * To use the full functionality of Cascading Style Sheets, you need a browser that support them, such as Microsoft Internet Explorer 4.0. Some browsers support only certain aspects of Cascading Style Sheets. Your results may differ, depending on the browser you are using.
 * Do not use themes for this demonstration or the examples will not work properly.

External Style Sheets
To create an external style sheet, follow these steps.  In FrontPage Explorer, create a FrontPage web named Style .  On the Windows Start menu, point to Programs, point to Accessories, and then click Notepad. Type the following code:    On the File menu, click Save. In the File Name box, type External.css and click OK. Switch to FrontPage Explorer and then import the External.css file into the Web by following these steps:

 On the File menu, click Import. Click Add File.</li> Select the External.css file and click Open.</li> Click OK.</li></ol> </li> Create a new page in FrontPage Editor.</li> Click the HTML tab located at the bottom of the FrontPage Editor window.</li>  Type the following HTML code between the <HEAD> and </HEAD> tags: <WWLINK REL="stylesheet" HREF="external.css" TYPE="text/css"> </li> On the File menu, click Save. In the File Name box, type Style1.htm and click Save.

NOTE: The Style1.htm file and the External.css files should be saved in the same folder.</li></ol>

Embedded Style Sheets
To create an embedded style sheet, follow these steps:

NOTE: Do not use themes for this demonstration or the examples will not work properly. <ol> In the FrontPage Editor, create a new page. To do this, click New on the File menu.</li> On the Format menu, click Stylesheet.</li>  In the editor window in the Format Stylesheet dialog box, type the following code.

NOTE: Be sure to type your code between the tags. BODY {background-color: white}

H1 {font-size: 12pt; font-family: "Arial"; color: black}

P {font-size: 10pt; font-family: "Times New Roman"; color: black}

a {text-decoration: none; font-weight: bold; color: black} </li> Click OK.</li></ol>

Inline Styles
To create an inline style, follow these steps: <ol> In the FrontPage Editor, create a new page. To do this, click New on the File menu.</li> Place the insertion point in the top left corner of the page. Type some text on the page. Select the text you just typed and then click Hyperlink on the Insert menu.</li> Select the page you want to use as the target of your hyperlink.</li> Click Style.</li> In the Style dialog box, do the following:

<ol style="list-style-type: lower-alpha;"> <li>Click the Colors tab.</li> <li>In the Foreground Color List For, select Black.</li> <li>Click the Text tab.</li> <li>In the Weight list, click Bold.</li> <li>In the Decoration list, click None.</li> <li>Click OK.</li></ol> </li> <li>Click OK.</li></ol>

For more information about Cascading Style Sheets, please see the following article in the Microsoft Knowledge Base:

179628 FP98: What are Cascading Style Sheets?

Additional query words: 98 css ie4 fpeditor

Keywords: kbhowto KB180827

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.