Monday, November 19, 2007

How to create a Style Sheet

How to create a Style Sheet

To create a Style Sheet

To create a style sheet, first you have to define it as an internal or external style sheet—that is either in the head section of a Web page or as a separate file. After you have defined the style sheet, you can create styles and define properties for the styles. Finally, you can reference an external style sheet from your page and apply the styles to your page elements.

To create a style sheet in the head section of a document:

Step 1.

  • Click the CSS button above the main content area of the document window to open the Style Sheet window.

Step 2.

  • Add styles to the style sheet. You can view the style sheet in Source view after adding the first style; it appears as a STYLE tag in the head section.

To create an external style sheet:

Step 1.

  • First of all, you have to choose the File tab from the menu bar and select New Special. And then choose the New Style-sheet Document.

Step 2.

  • After that add styles to the style sheet.

Step 3.

  • Save the new style sheet in your site folder to ensure it appears in the site window and it’s within reach of the Point and Shoot feature. Make sure to include the .css extension in the style sheet filename.


No comments: