Easy Tutorial
❮ Css3 Pr Flex Flow Css3 Pr Mediaquery ❯

CSS3 icon Property

Example

Set the image element as the icon equivalent:


Browser Support

No major browsers support the icon property.


Property Definition and Usage

The icon property provides creators with the ability to set an element as the icon equivalent.

Note: The element's icon is not usable unless the "content" property is set to "icon"!

Default value: auto
Inherited: no
--- ---
Version: CSS3
--- ---
JavaScript syntax: object.style.icon="url(image.png)"
--- ---

Syntax

Value Description
auto Uses the default generic icon provided by the browser.
URL References one or more icons in the list, separated by commas.
inherit Specifies that the value of the icon property should be inherited from the element.
❮ Css3 Pr Flex Flow Css3 Pr Mediaquery ❯