<?xml version="1.0" encoding="utf-8"?>

CSS outline-width property

CSS outline-width property Bad Practice
CSS outline-width property Best Practice

The outline is a shorthand property that exists to make it easier for web developers to write down the outline's style rules in one declaration. The property includes the following CSS constituents:

  • Outline-width
  • Outline-color
  • Outline-style

The outline-width property defines the thickness of a line surrounding the element that can be thin, medium, and thick.

Improve your UX & Product skills with interactive courses that actually work