Creating style sheets

You can use style sheets on your Web pages to define a consistent look and feel throughout your Web site, because you maintain the contents (Web pages) and the design (the style sheet) separately.

To create a new style sheet:

  1. From the Web perspective, select

    File | New | Web | CSS and then select Next. The New Cascading Style Sheet wizard appears.

  2. Select the appropriate container for the file from the list of project folders (and subfolders).

    You might want to create a "Theme" folder under the WebContents folder in which to place the CSS file. But whatever folder you choose, make sure it is located under the WebContent folder of the Web project. This ensures that the file is available for validation, publishing, and deployment.

  3. Type a file name into the appropriate field. The .css file type will be appended when the file is created.

  4. Click Finish to create and open the file in the editor.

 

Related concepts

Cascading Style Sheet (CSS) Designer

 

Related tasks

Defining page styles for a Web site - overview

Editing style sheets