-
24 May 2012 9:22 PM #1
Unanswered: changing the background color of panel
Unanswered: changing the background color of panel
I am trying to change background color of panel.
Please see the code:
but style: 'background-color: red' statement doesn't fulfill my requirements. it changes the color of panel border only not complete panel background color.Code:panel: { centered: true, width: 200, height: 150, style: 'background-color: red', fullscreen: false, hidden: true, zIndex: 10, }
please suggest for the same.
thanks!
-
24 May 2012 10:05 PM #2Sencha - Community Support Team
- Join Date
- May 2012
- Location
- Istanbul
- Posts
- 1,331
- Vote Rating
- 77
- Answers
- 124
Try to add a class
Try to add a class
Hi!
You may add a cls for your panel:-
CSS:-Code:panel: { centered: true, width: 200, height: 150, cls: 'redBG', fullscreen: false, hidden: true, zIndex: 10 }
.redBG .x-panel-body{
background-color : red !important;
/* add whatever you want here, but don't forget !important */
}sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
25 May 2012 1:52 AM #3
yeah, done but still not working. Again, it's changing the color of panel border only not complete panel background color. I think, there is some hidden panel inside panel,
-
28 May 2012 4:37 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
- Answers
- 3161
Have you inspected the DOM to see if something is overriding your CSS or if you are in the correct element?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
29 May 2012 2:11 AM #5


Reply With Quote