In CSS, to make the font-weight thin or lighter, you can use any value of 100, 200, or 300 or a lighter
keyword for the CSS font-weight property. Following are the more details:
CSS font-weight Syntax
font-weight: numeric value; /* or lighter keyword */ font-weight: lighter;
The value can be 100, 200, 300, or a lighter
keyword. Below are the values are their description:
Value | Description |
---|---|
100 | Thin (Hairline) |
200 | Extra Light (Ultra Light) |
300 | Light |
font-weight Thin Example
The below CSS code will make the text thinner for class light
:
.light { font-weight: 100; }
And in the below example, the paragraph text will be set to lighter:
p { font-weight: lighter; }