appearance property CSS Reference



Definition and Usage

The appearance property allows you to make an element look like a standard user interface element.

Default value:normal
Inherited:no
Version:CSS3
JavaScript syntax: object.style.appearance="button"

Syntax

appearance: normal|icon|window|button|menu|field;

Values

ValueDescription
normalRender the element as normal
iconRender the element as a small picture
windowRender the element as a viewport
buttonRender the element as a button
menuRender the element as a set of options for the user to choose from
fieldRender the element as an input field

Examples

div {
    appearance:button;
    -moz-appearance:button; /* Firefox */
    -webkit-appearance:button; /* Safari and Chrome */
}

Relative articles