CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS outline Property

CSS outline Property

 

 

An outline is a line that is drawn around elements that are outside of its borders which makes the element stand out. It is a shorthand property for:-

  1. outline-width
  2. outline-style
  3. outline-color

 

Default Value:-

 

Its default value is medium invert color.

 

Syntax:-

 

Its syntax is:- outline: outline-width outline-style outline-color | initial | inherit;

 

Further Explanation:-

 

Value Description
outline-width Specifies the width of the outline
outline-style Specifies the style of the outline
outline-color Specifies the color of the outline
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS