The outline-width property dictates the thickness of the outline and accepts the following values:
- thin (usually 1px)
- medium (typically 3px)
- thick (typically 5px)
- A precise measurement (in pixels, points, centimeters, ems, etc.)
Below is an example demonstrating outlines with varying widths:
Example
p.ex1 { border: 1px solid black; outline-style: solid; outline-color: red; outline-width: thin; }
p.ex2 { border: 1px solid black; outline-style: solid; outline-color: red; outline-width: medium; }
p.ex3 { border: 1px solid black; outline-style: solid; outline-color: red; outline-width: thick; }
p.ex4 { border: 1px solid black; outline-style: solid; outline-color: red; outline-width: 4px; }
|