The outline-offsetproperty is used to set space between an outline and the edge or border of an element. An outline is a line that is drawn around elements, outside the border edge.

  • Initial value0
  • Applies toAll elements
  • InheritedNo
  • MediaVisual
  • Computed value[length] value in absolute units (px or physical)
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript
Formal syntax: <length> | inherit

outline-offset: 4px;
outline-offset: 0.5em;
  • <length>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-offset: 2px; 

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.