Home > Web Front-end > CSS Tutorial > How to remove font bold style in css

How to remove font bold style in css

王林
Release: 2020-11-30 11:07:35
Original
2258 people have browsed it

How to remove bold font style in css: You can use the font-weight attribute, such as [font-weight:normal;]. The font-weight attribute is used to set the thickness of the text, and normal is used to define standard characters.

How to remove font bold style in css

The operating environment of this tutorial: Windows 10 system, CSS3, this article is applicable to all brands of computers.

Attribute introduction:

font-weight attribute sets the thickness of the text.

(Learning video sharing: css video tutorial)

This attribute is used to set the bold font used in the text of the display element. The numeric value 400 is equivalent to the keyword normal, and 700 is equivalent to bold. The font bold for each numeric value must be at least as thin as the next smallest number, and at least as thick as the next largest number.

Attribute value:

  • normal Default value. Defines standard characters.

  • #bold Defines bold characters.

  • #bolder Defines bolder characters.

  • #lighter Defines finer characters.

  • #inherit Specifies that the font weight should be inherited from the parent element.

Example:

p.normal {font-weight:normal;} 
p.thick {font-weight:bold;}
p.thicker {font-weight:900;}
Copy after login

Related recommendations: CSS tutorial

The above is the detailed content of How to remove font bold style in 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template