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

  • Initial valueauto
  • Applies toAll elements
  • InheritedNo
  • MediaMedia
  • Computed valueAs specified, except with any relative URLs converted to absolute
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript
Formal syntax: auto | <uri> [, <uri>]* | inherit

icon: [value];
  • autoUse a default generic icon provided by the user agent.
  • <uri>The uri value(s) in this property refer to one or more icons in a comma delimited list. The user agent loads the referenced icons one by one until it finds one that it is able to render.
  • inherit
.class {
   icon: url(imgicon.png); 

Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.