You may also be better suited, with multiple attributes, to apply a class:
bodyCssClass <source/Panel.html#cfg-Ext.Panel-bodyCssClass>: 'myWindowClass' Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of "Learning Ext JS" http://www.packtpub.com/learning-ext-js/book _____________________________ http://blog.cutterscrossing.com On 7/1/2009 10:16 AM, Don L wrote: > Sorry for the ot but this is a quick one. > > How to use the bodyStyle attribute for Window object? > > // Ext 2 > > var ewin = new Ext.Window ({ > // x:200, > // y:200, > width:350, > height:350, > border:true, > resizable:true, > // try 1 > // bodyStyle: [{background-color:white; color:black; padding-left:10px}] > > // try 2 > // bodyStyle: [{background-color:'white', color:'black', > padding-left:10px}] > > }); > > // results > neither try 1 nor try 2 worked in IE7 nor Firefox 3.0.11 on XP SP3. > > How to? > > Also, when I include the x and y attributes, the window failed to be opened, > weird. > > Thanks. > > Don > P.S. Need to fix my firebug > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324123 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4