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?
CSS: font help
Moderator: General Moderators
-
microthick
- Forum Regular
- Posts: 543
- Joined: Wed Sep 24, 2003 2:15 pm
- Location: Vancouver, BC
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.
That should get the effect you want.
Code: Select all
h2 { font-size: 21px/21px; font-weight: 900;}