Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1100009 of appearance

  • Revision slug: Web/CSS/appearance
  • Revision title: appearance
  • Revision id: 1100009
  • Created:
  • Creator: PushpitaPikuDey
  • Is current revision? No
  • Comment

Revision Content

{{SeeCompatTable}} {{CSSRef}}

The appearance CSS property indicates whether to display an element using platform-native styling based on the operating system's theme or not.

{{cssinfo}}

Syntax

appearance: auto;
appearance: none;

Values

<appearance> is one of the keywords in the table below.

Value Demo Description
auto  

(Default) The user agent may render form controls using native controls of the host operating system. When computing auto, the user agent must still honor the following properties:

  • all
  • bottom
  • clear
  • cursor
  • direction
  • display
  • float
  • left
  • margin
  • position
  • right
  • top
  • unicode-bidi
  • visibility 
  • z-index
none   Form controls are not made to look like native controls. The element is rendered following the usual rules of CSS.  No other replaced elements other than form controls are affected. 

Formal syntax

{{csssyntax}}

Examples

.exampleone {
  appearance: auto;
}

Specifications

Specification Status Comment
{{SpecName('CSS3 Basic UI 4','#propdef-appearance','appearance')}} {{Spec2('CSS3 Basic UI 4')}} Initial definition.

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatChrome(52.0)}}{{property_prefix("-webkit")}} [1]     39  
Feature Android Android Webview Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile Chrome for Android
Basic support {{CompatNo}} {{CompatChrome(52.0)}}{{property_prefix("-webkit")}} [1]     39   {{CompatChrome(52.0)}}{{property_prefix("-webkit")}} [1]

[1] Applies to the <meter> element only.

Revision Source

<p>{{SeeCompatTable}} {{CSSRef}}</p>

<p>The <code>appearance</code> CSS property indicates whether to&nbsp;display an element using platform-native styling based on the operating system's theme or not.</p>

<p>{{cssinfo}}</p>

<h2 id="Syntax">Syntax</h2>

<pre class="brush: css">
appearance: auto;
appearance: none;
</pre>

<h3 id="Values">Values</h3>

<p><code>&lt;appearance&gt;</code> is one of the keywords in the table below.</p>

<table class="standard-table">
 <tbody>
  <tr>
   <th>Value</th>
   <th>Demo</th>
   <th>Description</th>
  </tr>
  <tr>
   <td><code>auto</code></td>
   <td>&nbsp;</td>
   <td>
    <p>(Default) The user agent may render form controls using native controls of the host operating system. When computing auto, the user agent must still honor the following properties:</p>

    <ul>
     <li>all</li>
     <li>bottom</li>
     <li>clear</li>
     <li>cursor</li>
     <li>direction</li>
     <li>display</li>
     <li>float</li>
     <li>left</li>
     <li>margin</li>
     <li>position</li>
     <li>right</li>
     <li>top</li>
     <li>unicode-bidi</li>
     <li>visibility&nbsp;</li>
     <li>z-index</li>
    </ul>
   </td>
  </tr>
  <tr>
   <td><code>none</code></td>
   <td>&nbsp;</td>
   <td>Form controls are not made to look like native controls. The element is rendered following the usual rules of CSS.&nbsp; No other replaced elements other than form controls are affected.&nbsp;</td>
  </tr>
 </tbody>
</table>

<h3 id="Formal_syntax">Formal syntax</h3>

<pre class="syntaxbox">
{{csssyntax}}</pre>

<h2 id="Examples">Examples</h2>

<pre class="brush: css">
.exampleone {
  appearance: auto;
}
</pre>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('CSS3 Basic UI 4','#propdef-appearance','appearance')}}</td>
   <td>{{Spec2('CSS3 Basic UI 4')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatChrome(52.0)}}{{property_prefix("-webkit")}} [1]</td>
   <td>&nbsp;</td>
   <td>&nbsp;</td>
   <td>39</td>
   <td>&nbsp;</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Android Webview</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
   <th>Chrome for Android</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatChrome(52.0)}}{{property_prefix("-webkit")}} [1]</td>
   <td>&nbsp;</td>
   <td>&nbsp;</td>
   <td>39</td>
   <td>&nbsp;</td>
   <td>{{CompatChrome(52.0)}}{{property_prefix("-webkit")}} [1]</td>
  </tr>
 </tbody>
</table>
</div>

<p>[1] Applies to the <code>&lt;meter&gt;</code> element only.</p>
Revert to this revision