Home>Article>Web Front-end> How to make font thinner with css

How to make font thinner with css

王林
王林 Original
2021-01-27 16:55:55 10388browse

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:

How to make font thinner with css

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn