Welcome to WebmasterWorld Guest from 18.232.53.231

Forum Moderators: not2easy

Message Too Old, No Replies

How to use "font-weight" ?

     
1:29 pm on Sep 5, 2017 (gmt 0)

Full Member

Top Contributors Of The Month

joined:Apr 20, 2017
posts:334
votes: 73


Hi,

Does "font-weight" readlly do something? (beside the values 400 and 700).

I am trying to make a font between "normal" and "bold", which should be values 500 and 600, but it ends to be normal or bold , nothing intermediate.

May be I am missing something.

Thank you,
5:16 pm on Sept 5, 2017 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15753
votes: 826


Doesn't it depend on the user's OS? Ostensibly Windows makes a finer distinction, while Mac doesn't. For the foreseeable future it's safest to stick with "bold" and "normal".
8:13 pm on Sept 5, 2017 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Sept 25, 2005
posts:2091
votes: 370


You would need a font that supports those values. Many fonts only provide for the defaults 400 (normal) and 700 (bold).
9:02 pm on Sept 5, 2017 (gmt 0)

Full Member

Top Contributors Of The Month

joined:Apr 20, 2017
posts:334
votes: 73


You would need a font that supports those values. Many fonts only provide for the defaults 400 (normal) and 700 (bold).

Of course! Silly me!

Thank you robzilla, and lucy24 too.
9:34 pm on Sept 5, 2017 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15753
votes: 826


You would need a font that supports those values.
If the font doesn't come in bold, but the CSS and/or HTML specifies bold, the browser will improvise. Results are not nearly as ghastly as when it tries to “italicize” a font that doesn't come in italic by simply slanting the whole thing.