mozilla

Revision 25652 of outline-width

  • Revision slug: CSS/outline-width
  • Revision title: outline-width
  • Revision id: 25652
  • Created:
  • Creator: BijuGC
  • Is current revision? No
  • Comment /* Summary */

Revision Content

{{template.CSSMozExtensionRef()}}

Summary

outline-width 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:

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

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

Syntax

outline-width: thin | medium | thick | <width> | inherit

Values

<width>
The width of the border.

Examples

hbox.example {
  /* make the outline 10px */
  outline-width: 10px;
}

Specifications

Browser compatibility

Browser Lowest Version
Internet Explorer ?
Firefox ?
Netscape ?
Opera ?

See also

{{wiki.template('CSS_Reference:Outline')}}

Revision Source

<p> 
{{template.CSSMozExtensionRef()}}
</p>
<h3 name="Summary"> Summary </h3>
<p><code>outline-width</code> 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> {{template.Xref_cssinitial()}}: {{template.Cssxref("medium")}}
</li><li> Applies to: all elements
</li><li> {{template.Xref_cssinherited()}}: no
</li><li> Media: {{template.Xref_cssvisual()}}
</li><li> {{template.Xref_csscomputed()}}: 
</li></ul>
<p>In browsers previous to <a href="en/Gecko">Gecko</a> 1.8 (<a href="en/Firefox_1.5">Firefox 1.5</a>) essentially the same effect can be achieved using <a href="en/CSS_Reference/Mozilla_Extensions">Mozilla CSS Extension</a> {{template.Cssxref("-moz-outline-width")}}.
</p>
<h3 name="Syntax"> Syntax </h3>
<pre class="eval">outline-width: thin | medium | thick | &lt;width&gt; | inherit
</pre>
<h3 name="Values"> Values </h3>
<dl><dt> &lt;width&gt;</dt><dd> The width of the border.
</dd></dl>
<h3 name="Examples"> Examples </h3>
<pre class="eval">hbox.example {
  /* make the outline 10px */
  outline-width: 10px;
}
</pre>
<h3 name="Specifications"> Specifications </h3>
<ul><li> <a class="external" href="http://www.w3.org/TR/CSS2/ui.html#dynamic-outlines">CSS 2.1</a>
</li><li> <a class="external" href="http://www.w3.org/Style/CSS/current-work.html">CSS 3</a> (FIXME)
</li><li> <a class="external" href="http://www.w3.org/TR/css3-background/#the-border-shorthands">CSS 3 border</a>
</li></ul>
<h3 name="Browser_compatibility"> Browser compatibility </h3>
<table class="standard-table">
  <tbody><tr>
    <th>Browser</th>
    <th>Lowest Version</th>
  </tr>
  <tr>
    <td>Internet Explorer</td>
    <td>?</td>
  </tr>
  <tr>
    <td>Firefox</td>
    <td>?</td>
  </tr>
  <tr>
    <td>Netscape</td>
    <td>?</td>
  </tr>
  <tr>
    <td>Opera</td>
    <td>?</td>
  </tr>
</tbody></table>
<h3 name="See_also"> See also </h3>
<p>{{wiki.template('CSS_Reference:Outline')}}
</p>
Revert to this revision