-
4 Oct 2012 11:36 PM #1
Answered: CSS background-color for a toolbar is not working on IE. Any workaround guys?
Answered: CSS background-color for a toolbar is not working on IE. Any workaround guys?
My topbar (as docked item) in JS:
and in CSS:Code:dockedItems: [{ xtype: 'toolbar', dock: 'top', cls: 'timeTrackerTbar', style: { background: 'red' /*I have even tried using this, but still no luck on IE. :(*/ },
is not working on IE9 but are perfectly working on FF and Chrome. I though IE9 won't work with gradients only? This is just a simple-one color BG, and why is it not working?Code:.timeTrackerTbar.x-toolbar{ background-color: #273451 !important; }
This is on Chome: chrome.PNG
This is on IE: IE.PNG
Any suggestion guys?
-
Best Answer Posted by sword-it
Hi,
You can use following code:
you can see this link :http://jsfiddle.net/EVYm3/47/Code:.timeTrackerTbar.x-toolbar{ background: #273451 !important; }
-
4 Oct 2012 11:55 PM #2Sencha - Community Support Team
- Join Date
- May 2012
- Location
- Istanbul
- Posts
- 1,331
- Vote Rating
- 76
- Answers
- 124
Hi,
You can use following code:
you can see this link :http://jsfiddle.net/EVYm3/47/Code:.timeTrackerTbar.x-toolbar{ background: #273451 !important; }
sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
5 Oct 2012 12:08 AM #3
Thanks sword-it for your response. I have tried your suggestion but I am still getting the same output on IE. background: #273451 !important; still won't take effect.
-
5 Oct 2012 3:27 AM #4
Open up the IE dev tools (F12) and inspect the element in question. Then find the style rules for the background and it should be pretty clear what's going on.
The underlying problem will be that IE 9 has a background-image set and that's taking priority over the background-color. The solution that sword-it proposed should handle that but if it still isn't working it's probably a specificity problem that should become clear from a quick bit of digging in the dev tools.
-
8 Oct 2012 9:20 PM #5


Reply With Quote