View Full Version : Button iconCls using a sprite sheet - IE not working

15 May 2012, 7:42 AM

I'm trying to use a sprite sheet for my app but so far I haven't been able to get it to work with IE. I have a button where I set the icon:

xtype: 'button',
iconCls: 'addTabButton'

and the corresponding css:

.addTabButton {
background: url('images/sprites.png') !important;
background-position: 0px 0px;
width: 16px;
height: 16px;

The image shows correctly in Chrome, FF, Safari, etc. but with IE I can't get the image to appear. Any suggestions as to how to get it to work with IE?


15 May 2012, 8:14 AM
Found the issue: IE was rendering in quirks mode.