CSS3 iconProperty


Example

Sets the image element to an iconified equivalent:

img
{
content:icon;
icon:url(imgicon.png);
}


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

No major browser supports the icon property.


Attribute definition and usage instructions

The icon property gives authors the ability to set an element to an icon equivalent.

Note:An element's icon cannot be used unless the "content" property is set to "icon"!

Default value: auto
Inherited: no
version: CSS3
JavaScript Syntax: object.style.icon="url(image.png)"


Syntax

icon: auto|URL|inherit;

Value Description
auto Use the default generic icon provided by the browser.
URL References one or more icons from a list, with the list separated by commas.
inherit Specifies that the value of the icon property should be inherited from the element.
other extensions