Home>Article>Web Front-end> How to make font thinner with css
How to make the font thinner in css: You can use the font-weight attribute, such as [font-weight: lighter;]. The font-weight attribute is used to set the thickness of the font. The attribute value lighter represents thinner characters.
The operating environment of this article: windows10 system, css 3, Acer S40-51.
Detailed introduction:
In CSS, you can set the thickness of the font through the font-weight attribute.
(Learning video sharing:html video tutorial)
Attribute value:
normal Default value. Defines standard characters.
bold Defines bold characters.
bolder Defines bolder characters.
lighter defines finer characters.
htmlExample:
Document 字体粗细:lighter
字体粗细:normal
字体粗细:bold
字体粗细:bolder
Running results:
Related recommendations:html tutorial
The above is the detailed content of How to make font thinner with css. For more information, please follow other related articles on the PHP Chinese website!