CSS CSS Tutorial CSS Advanced CSS Responsive Web Design(RWD) CSS Grid CSS Properties Sass Tutorial Sass Functions



outline-width

The outline-width property is used to set the width of an element's outline. An outline is a line that is drawn around an element, outside the border. It is often used to highlight an element or to indicate focus.

The outline-width property can be set to a specific value, such as "2px", or to one of the following keywords:

  • thin: sets the width to a thin value, typically 1px
  • medium: sets the width to a medium value, typically 3px
  • thick: sets the width to a thick value, typically 5px

Here are some examples of how to use the outline-width property:

<p style="outline-width: 2px;">This paragraph has a 2px outline.</p>

<p style="outline-width: medium;">This paragraph has a medium outline.</p>

<p style="outline-width: thick;">This paragraph has a thick outline.</p>

You can also use the outline shorthand property to set the width, as well as the color and style of the outline. Here is an example:

<p style="outline: 2px dotted red;">This paragraph has a 2px dotted red outline.</p>

The outline-width property can be used on any element, including text, images, and form elements. It is often used in conjunction with the :focus pseudo-class to indicate when an element has focus. Here is an example:

<input type="text" style="outline: none;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style="outline: 2px solid blue;">

<input type="text" style

Activity