Forum Moderators: not2easy
example:
font-family: "Myriad Pro", Arial, sans-serif;
IF the user has Myriad Pro installed, I'd like the font size to be 18px
If only Arial is available, then font-size should be 17px
This is because those two fonts really have different span.
How can I achieve this?
thanks!
Javascript might give you something, and if you find support for it already, CSS3 has plans that go in the direction of adjusting the font size depending on the x-height of the selected font.
[w3.org...]
I'd avoid trying to need to have a very specific font(size) in my layout as the user ultimately can override your font choices anyway (e.g. with a minimum font size).