This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 221365

Summary: Insert code... -> Generate CSS Rule creates the css in the HTML code instead of stylesheet
Product: web Reporter: Vagabond <vagabond>
Component: CSS EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Vagabond 2012-11-02 15:13:31 UTC
Product Version = NetBeans IDE 7.3 Beta (Build 201210011125)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02

In this line:
<div class="longhaul">Other div</div>
I right click longhaul, then Insert Code... then CSS Rule

in the dialogue, I select 
Class, then type longhaul in the textfield, then add it to the Style Rule Hierarchy

Result:
.longhaul {

} is added to the top of the HTML page.

Expected: To be able to select from the included css files (or new css) where to generate this code.
Comment 1 Marek Fukala 2012-11-07 16:03:42 UTC
The action should be disabled in the class/id attribute value area.