The appearance property allows you to change any element into one of several standard user interface elements. For example, it will let you convert any element into a menu or window.
NOTE: Currently none of the browsers support the appearance property. However Firefox and Chrome will read the proprietary properties –moz-appearance, and –webkit-appearance properties respectively. Safari browser, being built by WebKit engine, supports –webkit-appearance property as well.
Syntax:
selector {
appearance: normal | icon | window | button | menu | field | initial | inherit;
}
Values:
The appearance property has these values:
- normal; This is the default value and it displays the element as it is.
- icon; Displays the element as a small icon.
- window; Displays the element as a viewport.
- button; Displays the element as a button.
- menu; Displays the element as a set of options for the user to choose from.
- field; Displays the element as an input field.
- initial, inherit
Example
The appearance property example with proprietary properties included:
Comments
No comments have been made yet.
Please login to leave a comment. Login now