CSS - font | css font style bold
CSS-font-weight font-weight Backtotheindex[1].Subtlecompatibilityproblem:exactlywhereinthe100-900rangedoeslighterstarttogenerateboldtext? font-weightismeantforsettingtheweight(boldness)ofthefont.normalisthedefault. Theproblemhereisthatthefontitselfmusthaveoneormoreweights.Ifithasnoneyoucannotmakeitboldatall. Ifyouwantacompletelysafeweight,justusefont-weight:boldandacceptanythingthebrowsergivesyou. Ifyou’retheadventuroussort,youc...
CSS - font-weight font-weightBack to the index[1].
Subtle compatibility problem: exactly where in the 100-900 range does lighter start to generate bold text?
font-weight is meant for setting the weight (boldness) of the font. normal is the default.
The problem here is that the font itself must have one or more weights. If it has none you cannot make it bold at all.
If you want a completely safe weight, just use font-weight: bold and accept anything the browser gives you.
If you’re the adventurous sort, you can use the 100-900 values. They’re supposed to give nine different weights, from very light to very bold. Few fonts support all nine weights, although some support four or five.
font-weight: 400 is supposed to be equal to normal, while 700 is equal to bold.
Finally there are the relative values bolder and lighter tha...