PDA

View Full Version : Using CSS3 images in HTML



jcoenrae
29 Sep 2011, 12:15 PM
Hi,

I was wondering if it is possible to use the css-images in the html. For example I have an image class 'settings' that I created with SASS. I can use it as iconCls on panels and things like that. But now I would also like to use it in an html line, for example in an '<img>'-tag.

Is this possible? And how should you do this?

Thanks!

jcoenrae
29 Sep 2011, 12:28 PM
If I use


<img src="' + Ext.BLANK_IMAGE_URL + '" class="{img}"/>

(with {img} replaced by the class you use), the html looks OK (img tag looks the same as if I would use it in the 'normal' way), but the image is not shown.