Creating a style sheet

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

  1. From the Web perspective, select File > New > CSS File to launch the Create a CSS File wizard.

  2. Select the appropriate container for the file from the list of project folders (and subfolders). Typically, you should place a CSS file in the theme folder located in the Web content folder.

    The folder that you choose should be under the Web content folder of the Web project. If the new file is not under this folder, then it will not be included in the WAR file that is deployed to the server. In addition, link validation will not encompass files that are not under the Web content folder.

  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