Posts: 256
Location: Auckland, New Zealand
|
First of all, why? It sounds like you're going backwards than forwards.
Anyways, to simply answer it, em is not a fixed measurement, it's based on what size you give it and it relates to that, there's no conversion for anything until you know what fixed measurement you're using it to base it off. In other words it's like saying how do I make % into px, when a % needs a fixed number before it's of any use.
Browsers usually have a default font size, which I believe is 16px, so 1em should be 16px, however each parent/child elements can have their own sizes, which changes the way em works again because it works by inheriting the font size that's used for those elements.
Hopefully this helps, but you should find another way to do what you're wanting without fixing the size.
Cheers,
MC
__________________
#------------------------------ signature---------------------------------------------------------------------------------#
Quote:
|
I am well recognised for what I don't do than what I do. Chores are just one of those things.
|
|