4 ms·
On the other hand, image icons can't change color on the fly or be dynamically upscaled, both of which are requirements when you are building a framework that i
by pault 15y ago
On the other hand, image icons can't change color on the fly or be dynamically upscaled, both of which are requirements when you are building a framework that is meant to be themed by users.
- harisenbon 15y agoYou can use png masks to create an icon, and then change the background color of the element below it. You can also use image scaling to make the icon any size you need. http://www.cssbakery.com/2009/06/background-image.html http://www.cssbakery.com/2009/06/background-image.html SenchaTouch does this for all their button icons. The downside is that you can't use spritesheets, because each image needs to be inserted with an image tag, not a background image.
- secoif 15y agoThis is exactly why we need blend modes (at least multiply+screen) in CSS.