CSS Icon Property

CSS 1

CSS 2

CSS 3

No No Yes

Description

The 'icon' property provides the author the ability to style any arbitrary element with an iconic equivalent.

Syntax

icon: [value];

Possible values

  • auto
  • [uri]
  • inherit

Initial Value

Auto

Applies To

All elements

Inherited

No

Media

All

Example

.class {
  icon: url(imgicon.png)  ;
}


View All CSS Properties