Search within TutorialsPark

CSS3 icon Property


A assign an icon for an element


Definition and Notes.

1. The CSS3 icon property is used to allow developers to use style an element with an icon.

2. For the icon to be placed for the element, the content property must be set to icon.


Syntax:

CSS3 icon property. internetexplorer safari firefox opera chrome

View in Splitscreen»

Code-Editor:





Property Values

Value Description
auto To use the default generic icon provided by the Browser
<uri> To specify the location or path of the icon image.Multiple values can be seperated by a comma.
inherit The values are inherited from the parent element

Specifications

Specs Value
Name icon
Value auto | <uri> [, <uri>]* | inherit
Initial Value auto
Applies to all enabled elements
Javascript syntax object.style.icon="url(icon.png)"
Inherited No
Computed Value as specified, expect with any relative URLs converted to absolute
Browser Support internetexplorer safari firefox opera chrome

Related Examples.