CSS outline-width property

Description

CSS outline-width property represents the width of outline.


The border may affect the layout of neighbor elements. While the outline does not affect the layout of neighbor elements.

Syntax

outline-width : medium | thin | thick | +ve length

Property values

mediumDefault

medium value represents medium sized outline. thin≤medium≥thick

outline-side: medium;

thin

thin value defines thin outline .

outline-width: thin;

thick

thick value defines a thick outline.

outline-side: thick;

+ve length

lenght defines the width of outline. The used units might be px, in, em, pt.

outline-width: 10px;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
outline-width defines the width of the outline.
×

Ctrl+D