The Edit CSS Rules dialog box enables you to create new rules in a CSS style sheet. The dialog box displays a list of types of selectors and options for specifying and naming the selector.
To create a new rule you must select a Selector Type and then specify the details for the selector either by typing in the Selector text field or by using the drop-down list.
You can specify the following details in this dialog box.
Element | Description |
---|---|
Selector Type |
Select one of the following types from the list. |
Class |
Select this type to create a rule for a class selector to specify a style for a group of elements. When you select this type you must supply the name of the class selector in the Selector text field. |
ID |
Select this type to create a rule for an id selector to specify a style for a single, unique element. When you select this type you must supply the name of the id selector in the Selector text field. |
Element |
Select this type to create a rule for an HTML element. When you select this type you must select an HTML element from the Selector drop-down list or type the name of the HTML element in the Selector text field. |
Compound |
Select this type to create a rule for a nested selector. When you select this type you must type the names of the HTML elements or selectors in the Selector text field. |
Selector |
Specify the selector by typing the name in the Selector text field or by using the drop-down list to select an HTML element. |
Style Sheet |
Select the style sheet from the drop-down list. This option is disabled if there are no references to additional style sheets in the application or file. |
At Rule |
Select a media type from the drop-down list to create a new rule that only applies to the selected media (for example, @print). This option is disabled if no media types are specified in the style sheet. By default, rules are applied to all media types. |
Related Topics
Developing Applications with NetBeans IDE,
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |