i

Learn HTML and CSS in 10 Days

CSS Outline

It is similar to the CSS border property. It just helps in drawing an extra border around the element to provide more attention.

Let’s check out the property value.

  • Outline-width – It is similar to padding and margin. It can be either a relative value or an absolute value or a pre-defined value like thick, medium, or thin.

  • Outline-color – It is for the color of the outline.

  • Outline-style – It provides different outline styles, like, hidden, dotted, dashed, solid, double, groove, ridge, inset and outset.