How to make font thinner with css

王林
Release: 2022-12-30 11:12:45
Original
10379 people have browsed it

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

Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!