What is the maximum font value in multiple hundreds

In CSS, when we specify font-weight in multiple hundreds as font-weight: 500; font-weight: 700; and so on.

Is there a maximum value for font-weight, so font-weight will be extra bold or maximum in a certain range, say: font-weight: 1500, like this

+8
source share
4 answers

900 is the largest value defined in the CSS2.1 specification :

normal | bold | bolder | lighter
100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
inherit

The font-weight property selects the font weight. Values ​​from 100 'to' 900 'form an ordered sequence, where each number indicates a weight that is at least as dark as its predecessor. The keyword "normal" is synonymous with "400", and "bold" is synonymous with "700". It was shown that keywords other than “normal” and “bold” often mix with font names, so a numerical scale is chosen for the 9-digit list.

+11
source

valid font-weight range is 100 - 900.

Link

http://www.css3.com/css-font-weight/

+6
source

font-weight value ranges from 100 to 900.

Read here.

+1
source

The short answer 2018 is 1000 .

The CSS Fonts Level 4 module allows font-weight have any of the following values

  • Any number from 1 to 1000 (inclusive)
  • normal equivalent to 400
  • bold equivalent to 700
  • Relative weights bolder or lighter

In earlier versions , only the following values ​​were allowed: normal , bold , bolder , lighter , 100 , 200 , 300 , 400 , 500 , 600 , 700 , 800 and 900 .

0
source

Source: https://habr.com/ru/post/956558/


All Articles