PDA

View Full Version : Toolbar background problem in IE



dweeres
27 Jan 2012, 7:42 AM
I unable to change the background color in IE, no problem in FF and Chrome.


.x-toolbar-mainmenu{background: #ef4035;}

var maintb = new Ext.toolbar.Toolbar({
width: '100%',
height: 35,
cls :"x-toolbar-mainmenu"
})

even

var maintb = new Ext.toolbar.Toolbar({
width: '100%',
height: 35,
style :{backgroundColor:'#ef4035'}
})

does not work.

Suggestions?

skirtle
28 Jan 2012, 11:26 AM
Use the debugger that comes with IE8 or IE9 to dig into the CSS. You should be able to select the relevant element in the page and then it will tell you exactly what styles are being applied and which CSS rules are causing them.