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 - Insert code... -> Generate CSS Rule creates the css in the HTML code instead of stylesheet
Summary: Insert code... -> Generate CSS Rule creates the css in the HTML code instead ...
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2012-11-02 15:13 UTC by Vagabond
Modified: 2014-10-06 13:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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

.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.