Tags
HTML , css
Asked 8 years ago
6 Oct 2016
Views 739
css-learner

css-learner posted

howmuch max and min value can be for font-weight property in css

for my college project . i jst start making some webpages . i use inspect tool for debugging css property.i am wondering howmuch we can add max or min value to font-weight. like i added font-weight:999; and chrome inspect tool says "Invalid Property Value"

.label {
    display: inline;
    padding: .2em .2em .2em;
     font-size: 75%; 
    font-weight: 999;
    line-height: 1;  
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: -0.75em;
}

above is boostrap label css . and i played with it little bit and make font-weight to 999 and google chrome inspect tool say "Invalid Property Value"
so what should be max or min range for font-weight ?
ravi

ravi
answered Nov 30 '-1 00:00

"Invalid Property Value" means property will not applied .it take font weight from parents.
font-weight can be 100 to 900 , above and below it give invalid property value. so make it between 100 to 900 and it good .
Thanks
what if we want to set font-weight:bold , what should be value? - css-learner  
Oct 10 '16 07:26
its value should be 900 (max value) so font-weight:bold = font-weight:900 - Mitul Dabhi  
Oct 10 '16 08:13
Post Answer