🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to CSS Notes
Topic #35

Outline Width


CSS Outline Width

The outline-width property specifies the width of the outline, and can have one of the following values:

  • thin (typically 1px)
  • medium (typically 3px)
  • thick (typically 5px)
  • A specific size (in px, pt, cm, em, etc)

CSS Outline Width Examples

Here are some outlines with different widths:

A thin outline.

A medium outline.

A thick outline.

A 8px thick outline.

Example

  p {
  padding: 5px;

  outline-style: solid;
  outline-color: green;
}

p.ex1 {
  outline-width: thin;
}

  p.ex2 {
  outline-width: medium;
}

p.ex3 {
  outline-width:
  thick;
}

p.ex4 {
  outline-width: 8px;
}

Want to go beyond the notes?

Join CodingNow 2.0's CSS course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

Outline Width – FAQs

Quick answers about learning Outline Width in CSS.

This free note from CodingNow 2.0 explains Outline Width in CSS — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every CSS topic on CodingNow 2.0, including Outline Width, is 100% free with no signup required.
With focused practice, most students grasp Outline Width in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now