PDA

View Full Version : applying style to html fragments



bhomass
25 Nov 2007, 9:13 PM
I applied style config to an html fragment

var count_query_SalesBySerialNumberText = {
id: 'count_query_SalesBySerialNumberCmp',
html: '<div id="count_query_SalesBySerialNumber" width="6" >',
style: 'width:6'
}

but in the rendered html, the style is blank

<div id="count_query_SalesBySerialNumberCmp" class="x-panel x-panel-noborder" style="">
<div id="ext-gen89" class="x-panel-bwrap">
<div id="ext-gen90" class="x-panel-body x-panel-body-noheader x-panel-body-noborder" style="padding: 5px;">
<div id="count_query_SalesBySerialNumber" width="6">1</div>
</div>
</div>
</div>

is there another way which can add the style to the rendered div?

bhomass
26 Nov 2007, 11:00 AM
this is resolved.

I noticed a ext-strict on the html tag. after removing it, the style settings got into the generated div's.