Revision 25663 of outline-width

  • Revision slug: CSS/outline-width
  • Revision title: outline-width
  • Revision id: 25663
  • Created:
  • Creator: Jürgen Jeka
  • Is current revision? No
  • Comment 12 words added, 2 words removed

Revision Content

{{ CSSRef() }}

Summary

The outline-width CSS property is used to set the width of the outline of an element. An outline is a line that is drawn around elements, outside the border edge, to make the element stand out:

  • {{ Xref_cssinitial() }}: {{ Cssxref("medium") }}
  • Applies to: all elements
  • {{ Xref_cssinherited() }}: no
  • Media: {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}:

In browsers previous to Gecko 1.8 (Firefox 1.5) essentially the same effect can be achieved using Mozilla CSS Extension {{ Cssxref("-moz-outline-width") }}.

Syntax

outline-width: thin | medium | thick | {{ Xref_csslength() }} | {{ Cssxref("inherit") }}

Values

thin
Depends on the UA. Typically 1px in desktop browsers like Firefox.
medium
Depends on the UA. Typically 3px in desktop browsers like Firefox.
thick
Depends on the UA. Typically 5px in desktop browsers like Firefox.
<length>
See {{ Xref_csslength() }} values.

Examples

 thin   medium   thick   2px   1ex            5em 

Specifications

  • See {{ Cssxref("outline") }} property

Browser compatibility

Browser Lowest Version
Internet Explorer 8.0
Firefox (Gecko) 1.5 (1.8)
Opera 7.0
Safari (WebKit) 1.2 (125)

See also

{{ CSS_Reference:Outline() }}

Revision Source

<p>{{ CSSRef() }}</p>
<h3>Summary</h3>
<p>The<code> outline-width </code>CSS property is used to set the width of the outline of an element. An outline is a line that is drawn around elements, outside the border edge, to make the element stand out:</p>
<ul> <li>{{ Xref_cssinitial() }}: {{ Cssxref("medium") }}</li> <li>Applies to: all elements</li> <li>{{ Xref_cssinherited() }}: no</li> <li>Media: {{ Xref_cssvisual() }}</li> <li>{{ Xref_csscomputed() }}:</li>
</ul>
<p>In browsers previous to <a href="/en/Gecko" title="en/Gecko">Gecko</a> 1.8 (<a href="/en/Firefox_1.5_for_developers" title="en/Firefox_1.5_for_developers">Firefox 1.5</a>) essentially the same effect can be achieved using <a href="/en/CSS_Reference/Mozilla_Extensions" title="en/CSS_Reference/Mozilla_Extensions">Mozilla CSS Extension</a> {{ Cssxref("-moz-outline-width") }}.</p>
<h3 name="Syntax">Syntax</h3>
<pre class="eval" style="white-space: normal;">outline-width: thin | medium | thick | {{ Xref_csslength() }} | {{ Cssxref("inherit") }}
</pre>
<h3>Values</h3>
<dl> <dt> thin </dt> <dd>Depends on the UA. Typically <strong>1px</strong> in desktop browsers like Firefox. </dd> <dt> medium </dt> <dd>Depends on the UA. Typically <strong>3px</strong> in desktop browsers like Firefox. </dd> <dt> thick </dt> <dd>Depends on the UA. Typically <strong>5px</strong> in desktop browsers like Firefox. </dd> <dt> &lt;length&gt; </dt> <dd> See {{ Xref_csslength() }} values. </dd>
</dl>
<h3>Examples</h3>
<pre> <span style="outline:solid thin">thin</span>   <span style="outline:solid medium">medium</span>   <span style="outline:solid thick">thick</span>   <span style="outline:solid 2px">2px</span>   <span style="outline:solid 1ex">1ex</span>            <span style="outline:solid 5em">5em</span> 
</pre>
<h3>Specifications</h3>
<ul> <li>See {{ Cssxref("outline") }} property</li>
</ul>
<h3>Browser compatibility</h3>
<table class="standard-table"> <tbody> <tr> <th>Browser</th> <th>Lowest Version</th> </tr> <tr> <td>Internet Explorer</td> <td>8.0</td> </tr> <tr> <td>Firefox (Gecko)</td> <td>1.5 (1.8)</td> </tr> <tr> <td>Opera</td> <td>7.0</td> </tr> <tr> <td>Safari (WebKit)</td> <td>1.2 (125)</td> </tr> </tbody>
</table>
<h3 name="See_also">See also</h3>
<p>{{ CSS_Reference:Outline() }}</p>
Revert to this revision