Page 1 of 1

CSS: font help

Posted: Sat Nov 22, 2003 6:51 pm
by nigma
Hey, I have the following css:
h2 { font: 21px/21px 600; }

Now, that looks fine, but I want the font weight a bit higher so I do:
h2 { font: 21px/21px 900; }

No effect, so I just ditch the font-weight element all together:
h2 {font: 21px/21px; }

Now the font weight is much bigger, but when I do specify a font-weight it appears to always stay the same weight.

Any idea why?

Posted: Sat Nov 22, 2003 7:01 pm
by microthick
I've learned never to specify weights with numbers. It never comes out as I expect. So I just use bold or normal.

Posted: Sun Nov 23, 2003 11:15 am
by gbrussian
font-weight: bold;


whatabout that?

Posted: Tue Nov 25, 2003 4:29 pm
by uberpolak
I've had a similar problem, though I don't know what the cause is, I find that specifying the weight by using only the "font" attribute doesn't seem to work. It seems that when it's included, it forces the font to its default weight, whatever you set it to be.

Code: Select all

h2 { font-size: 21px/21px; font-weight: 900;}
That should get the effect you want.

Posted: Wed Nov 26, 2003 6:38 pm
by nigma
Thanks for your helpful replies.