The outline-width 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.

  • Initial valuemedium
  • Applies toAll elements
  • InheritedYes
  • MediaVisual
  • Computed valueAbsolute length; '0' if the outline style is 'none'
  • AnimatableNo
  • CSS VersionCSS2, CSS3
  • JavaScript
Formal syntax: <border-width> | inherit

outline-width: thin;
outline-width: 2px;
outline-width: .5em;
  • thinLess than the default width.
  • thickGreater than the default width.
  • mediumDefault value.
  • <border-width>Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px).
  • inherit
.class {
   outline-width: thin;

Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.