|
Posted by Benjamin Niemann on 10/25/91 11:39
John Salerno wrote:
> Mark Parnell wrote:
>> Deciding to do something for the good of humanity, John Salerno
>> <johnjsal@NOSPAMgmail.com> declared in alt.html:
>>
>>> I know I will feel stupid after you answer this question, but how do I
>>> do that? I don't see an immediate connection between, say, 200px and any
>>> particular em value.
>>
>> That's the whole point - if there was a direct correlation, there would
>> be little point in using the one rather than the other. Generally I find
>> around 15-20em is a good starting point for sidebars - adjust to suit.
>
> So is this more of a test-and-see kind of conversion? There's no way to
> keep things the way they are when it's changed to em?
If everything stays the way it was, there'd still no reason to change
anything ;)
If you already changed your font-sizes to relative sizes, you could (in
theory) calculate the actual pixel size of the font (starting from the size
as configured in your browser) for each element where you need it (or count
pixels on your screen ;). Or you may still know what the pixel size was,
before you changed the unit for font-size. Then divide your pixel length by
the fonts pixel size and this should give you ems.
Not really efficient, I'd guess...
Once you get used to it, you'll get some kind of feeling for it (how many
ems you need in order to fit N characters in a box and stuff like that).
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Navigation:
[Reply to this message]
|