CSS outline-width

CSS outline-width property specify the width of an element’s outline (2px, 2em, etc.).

CSS property outline-width

CSS version: CSS 2.1
Value: thin | medium | thick | length | inherit
Initial: medium
Applies to: all elements
Inherited: no

Example css outline-width

In the following code, CSS property outline-width can be changed to the following values
  • 4px
  • 8px
  • 4em
  • thin
  • medium
  • thick
<style type="text/css">
div {
  width:150px; height:100px;
  background-color: lightgray;
  border: 4px solid gray;
  outline-width: 4px;
  outline-style: solid;
  outline-color: lightblue;

outline-width refresh



Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit


Click here to write/view comments