This article was previously published under Q205996
On This Page
SUMMARY
This article describes how to create external and embedded cascading style sheets (CSS).
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.
To create an external style sheet, follow these steps:
1.
In FrontPage, create a FrontPage web named "Style" (without the quotation marks).
2.
On the View menu, click Page.
3.
On the File menu, point to New, and then click Page.
4.
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).
5.
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
}
6.
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.
7.
Create a new page in FrontPage.
8.
On the Format menu, click Style Sheet Links.
9.
In the Link Style Sheet dialog box, click Add.
10.
Click to select the External.css file from the list, and then click OK.
Need More Help? Contact a Support professional by Email, Online or Phone.
Customer Service For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
Newsgroups Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.