PDA

View Full Version : IconCls issues



jmls
2 Jul 2012, 3:57 AM
36709
Trying to use the IconCls attribute , but to no avail. If I replace the iconCls with a icon : 'images/add.png' then the image appears

As you can see from above, it all looks ok : the icon-add is in the class, with the appropriate css file loaded and .icon-add found

what am I missing ?

skirtle
2 Jul 2012, 4:24 AM
Is the path images/add.png correct relative to the CSS file?

Do you see an attempt to load the image in the Network tab?

jmls
2 Jul 2012, 4:45 AM
spot on ! thanks so much.

my folder structure was

images
stylesheets

so I needed

.icon-add {
background-image: url(../images/add.png) !important;
}

in the stylesheet, but I had

.icon-add {
background-image: url(images/add.png) !important;
}

made the change, images appeared.

Thanks again