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 can support them, such as Microsoft Internet Explorer version 4.0 or later.
- Some browsers only support 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, create a FrontPage web named "Style" (without the quotation marks).
- On the View menu, click Page.
- On the File menu, point to New, and then click Page.
- Click the Style Sheets tab, click the Normal Style Sheet, and then click OK.
FrontPage will create a new style sheet page with a .css file name extension and open it for editing in the Page View.
NOTE: If you select a style sheet other than the Normal Style Sheet, FrontPage opens a pre-made or custom style sheet (example: the Downtown style sheet). -
Type the following:
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 }
- On the File menu, click Save. Select the location you want to save. In the File Name box, type: External.css, and then click OK.
- Create a new page in FrontPage.
- On the Format menu, click Style Sheet Links.
- In the Link Style Sheet dialog box, click Add.
- Click to select the External.css file from the list, and then click OK.
- Click OK again.
- Save the page.
Embedded Style Sheets
To create an embedded style sheet, follow these steps:- In Page view in FrontPage, create a new page.
- On the Format menu, click Style.
- In the list, click to select All HTML tags.
- From the Styles list, select the p and click Modify.
- In the Modify Style dialog box, click Format, and then click Font.
- Format the font and click OK. For example, click Italic under Font Style and click OK.
- Click OK again.
- From the list, select H2.