Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS3 appearance property

CSS3 appearance property

Example

Make a div element look like a button:

div

{

appearance:button;

-moz-appearance:button; /* Firefox */

-webkit-appearance:button; /* Safari and Chrome */

}

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

No major browser supports the appearance property.

Firefox supports the alternative -moz-appearance property.

Safari and Chrome support the alternative -webkit-appearance property.


Tag Definition and Usage Notes

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 object.style.appearance="button"

Syntax

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

Value Description
normal Render the element normally
icon Render the element as a small image
window Render the element as a viewport
button Render the element as a button
menu Render the element as a user option setting selection
field Render the element as an input field