blob: e22b827f3f6b8202f4c8a3839e3244d255e9c05d [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>Edit CSS Rules Dialog Box</title>
<link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/>
</head>
<body>
<p><a id="css_visual_CreateRulePanel" name="css_visual_CreateRulePanel"></a></p>
<div id="NBCSH872"><!-- infolevel="all" infotype="General" --><a id="sthref85" name="sthref85"></a>
<h1>Edit CSS Rules Dialog Box</h1>
<a name="BEGIN" id="BEGIN"></a>
<p>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.
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG2269">
<param name="text" value="<html><u>More</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<p>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.</p>
<p>You can specify the following details in this dialog box.</p>
<table summary="User interface elements and descriptions" dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0">
<col width="24%" />
<col width="*" />
<thead>
<tr align="left" valign="top">
<th align="left" valign="bottom" id="r1c1-t4">Element</th>
<th align="left" valign="bottom" id="r1c2-t4">Description</th>
</tr>
</thead>
<tbody>
<tr align="left" valign="top">
<td align="left" id="r2c1-t4" headers="r1c1-t4">
<p>Selector Type</p>
</td>
<td align="left" headers="r2c1-t4 r1c2-t4">Select one of the following types from the list.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r3c1-t4" headers="r1c1-t4">
<p>Class</p>
</td>
<td align="left" headers="r3c1-t4 r1c2-t4">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.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r4c1-t4" headers="r1c1-t4">
<p>ID</p>
</td>
<td align="left" headers="r4c1-t4 r1c2-t4">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.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r5c1-t4" headers="r1c1-t4">
<p>Element</p>
</td>
<td align="left" headers="r5c1-t4 r1c2-t4">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.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r6c1-t4" headers="r1c1-t4">
<p>Compound</p>
</td>
<td align="left" headers="r6c1-t4 r1c2-t4">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.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r7c1-t4" headers="r1c1-t4">
<p>Selector</p>
</td>
<td align="left" headers="r7c1-t4 r1c2-t4">Specify the selector by typing the name in the Selector text field or by using the drop-down list to select an HTML element.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r8c1-t4" headers="r1c1-t4">
<p>Style Sheet</p>
</td>
<td align="left" headers="r8c1-t4 r1c2-t4">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.</td>
</tr>
<tr align="left" valign="top">
<td align="left" id="r9c1-t4" headers="r1c1-t4">
<p>At Rule</p>
</td>
<td align="left" headers="r9c1-t4 r1c2-t4">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.</td>
</tr>
</tbody>
</table>
<br />
<!-- -->
<a id="NBCSH881" name="NBCSH881"></a>
<hr><p><b>Related Topics</b></p>
<p><i>Developing Applications with NetBeans IDE</i>,
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
<param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG2266">
<param name="text" value="<html><u>&quot;Creating Cascading Style Sheets&quot;</u></html>">
<param name="textFontSize" value="medium">
<param name="textColor" value="blue">
</object>
</p>
<!-- -->
<!-- Start Footer -->
<table summary="" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" width="86%"><a href="legal_notice.htm">
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a>
</td>
</tr>
</table>
<!-- -->
</body>
</html>