How to add bold attributes to fonts in css files
How to add bold attributes in the css file, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.
In the css file, the font bold attribute is "font-weight", which sets the thickness of the font text, bold characters can be defined when the property value is set to "bold", and bolder characters can be defined when set to "bolder".
The operating environment of this tutorial: windows7 system, CSS3&&HTML5 version, Dell G3 computer.
In the css file, the font bold attribute is "font-weight".
The font-weight property sets the thickness of the text and supports a variety of attribute values:
The value describes the normal default value. Define standard characters. Bold defines bold characters. Bolder defines thicker characters. Lighter defines finer characters.
one hundred
two hundred
three hundred
four hundred
five hundred
six hundred
seven hundred
eight hundred
nine hundred
Defines characters from thin to bold. 400 is equivalent to normal, while 700 is equivalent to bold.
Example:
Css text bold p.normal {font-weight: normal;} p.bold {font-weight: bold } p.bolder {font-weight: bolder;} p.thicker {font-weight: 900 } Test text!
Test the text!
Test the text!
Test the text!
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.