PDA

View Full Version : Two images for a button?



konki_vienna
20 Oct 2010, 3:26 AM
Is it possible to set two images for a button?

If I use the 'iconCls'-ConfigOption I manage only to display a single icon, but with css3 it should be possible to display several background-images, right.

Code for the button:

{ xtype: 'button', ui: 'action', text: 'Favorite 2', iconCls: 'buttonImages'},Code for the css:

.buttonImages {
background: url('../img/left.png') top left no-repeat, url('../img/right.png') top right no-repeat;
}