JBoss.orgCommunity Documentation

Chapter 6. CSS Editing Perspective

6.1. Outline view
6.2. Properties view
6.3. CSS Properties view
6.4. CSS Preview

In this chapter we will discuss CSS Editing Perspective views. More information about style sheets can be found in Section 3.2.2, “Pages Styling” of Editor chapter.

The CSS Editing Perspective combines a set of views which allow you to see the structure of your css files, edit them and see the results. To use this perspective you need to select WindowOpen PerspectiveCSS Editing. All of the views are fully synchronized with each other: the changes being made in one view are reflected in the others.

As you know there are three ways of inserting a style sheet:

Using the CSS Editing Perspective you can change your style sheet, inserted in any of the possible places described before in three ways:

CSS Editing Perspective

Figure 6.1. CSS Editing Perspective


Using this view you can easily skip between the selectors described in the source files. See the list of properties in any selector just by clicking the triangle near it.


You can use the Source viewer with the Outline view to navigate around the file. To do this you should left click the selector or property you want and it will be automatically highlighted in the source code:


Properties view provides a full list of properties of a chosen selector. The properties are divided into logic groups for better navigation.


With the help of Properties view you have also the ability to edit the CSS file by adding, editing or removing properties in the selector. Left click the Value field near the property you want to edit and write the changes in the text field.


CSS Properties view has five tabs:

Using CSS Preview you can see how a selector affects any text.


The preview can edited by double clicking on it. You can add any text you want, including HTML tags.