CSS3 icon property
Examples
Icon image element is set to the equivalent of:
img
{
content: icon;
icon: url (imgicon.png);
}
{
content: icon;
icon: url (imgicon.png);
}
Browser Support
No major browsers support icon properties.
Attribute definitions and instructions
icon creator property element is set to provide the equivalent of an icon of capacity.
Note: The icon element is not available unless the "content" attribute set to "icon"!
Defaults: | auto |
---|---|
inherit: | no |
version: | CSS3 |
JavaScript syntax: | object .style.icon = "url (image.png)" |
grammar
icon: auto|URL|inherit;
value | description |
---|---|
auto | Use the default generic icons provided by the browser. |
URL | List of references to one or more icons, comma-separated list. |
inherit | Provisions should be elements inherit property value icon. |