Sun Java Studio Creator 2 Update 1 – Online Help
 

Adding a CSS File to a Project

See Also

Every project has a default cascading style sheet (CSS) file, stylesheet.css. This file is in the project's resources directory, as you can see by opening the Projects window and navigating to project-name > Web Pages > resources. You can edit this file in the CSS Editor.

You can also add your own CSS file to the project.

To add a CSS file to a project:

  1. From the main menu, choose File > Add Existing Item > Style Sheet.
     
  2. Use the dialog to navigate to the file's location, and then select the file and click OK.
     

The CSS file is added to the project under the project's resources directory. If you want make this style sheet the default style sheet for a page, click the page's background in the Visual Designer, and then set the page's Style Sheet property to reference the new CSS file.

See Also
About Projects
Project Tasks: Quick Reference
About the Projects and Files Windows
 
 
 
Legal Notices. Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Close