How to Apply Style Sheet Rules

Previous Next

In order for the style sheets to influence the presentation, the HTML documents need to be linked with the style sheets. There are several ways to do this. We advise you to use external style sheets.

To apply style sheet rules:

1.Define your style sheet rules in one or more files that have the CSS extension. Also see "How to Define a Style Sheet Rule".
2.Create one "master" CSS document that imports the other required CSS documents, if any. You can use the predefined CustStyle style sheet as master document.
The import instructions must be at the beginning of the master CSS document. For example:

@import "WRClasses.css";

@import "WebDesigner.css";

@import "CompanyStyle.css";

 

3.To link the external CustStyle style sheet to an HTML document, add the following line within the <HEAD> element of the HTML document:

<LINK REL=STYLESHEET TYPE="text/css" HREF="css/CustStyle.css">