-
1 May 2012 9:26 AM #1
Answered: Border CSS overridden in component
Answered: Border CSS overridden in component
In 4.0.7 the following could would render $123.45 with a double line on the bottom border. No border is rendered in 4.1.0. This seems due to the "border: false". Setting "border: true" will render a single line bottom border. Setting xtype to 'container' has no effect. For this to work, it needs to have a panel xtype, which seems more heavy weight than needed. BTW, I tried using 'cls' property, same effect as inline style.
Is there another way to style a lightweight component with the double bottom border?
Thanks,
Jim
Code:Ext.application({ name: 'HelloExt', launch: function() { Ext.create('Ext.container.Viewport', { items: [ { xtype: 'component', html: '$123.45', //cls: 'mycss', style: 'height: 20px; border-bottom: 3px double black;', border: false } ] }); } });
-
Best Answer Posted by scottmartin
Please try the following:
Regards,Code:.mycssbox { border-bottom: 3px double red !important; } Ext.application({ name: 'HelloExt', launch: function() { Ext.create('Ext.container.Viewport', { items: [ { xtype: 'component', html: '$123.45', cls: 'mycssbox', border: false } ] }); } });
Scott.
-
1 May 2012 1:54 PM #2Sencha - Support Team
- Join Date
- Jul 2010
- Location
- Houston, Tx
- Posts
- 7,183
- Vote Rating
- 194
- Answers
- 433
Please try the following:
Regards,Code:.mycssbox { border-bottom: 3px double red !important; } Ext.application({ name: 'HelloExt', launch: function() { Ext.create('Ext.container.Viewport', { items: [ { xtype: 'component', html: '$123.45', cls: 'mycssbox', border: false } ] }); } });
Scott.
-
2 May 2012 7:16 AM #3
Thanks, the !important did the trick.


Reply With Quote