Jump to content

Archived

This topic is now archived and is closed to further replies.

Ninjakreborn

calculating the difference in ems, and px's

Recommended Posts

I have a certain number of pixels, say I want to decide how many em's that is instead, is there a way for me to calculate that?

Share this post


Link to post
Share on other sites
what would be the point, they are different sets of measurements for a reason.

Share this post


Link to post
Share on other sites
I have an image that is done in pixels, the photoshop file is in pixel's, I am trying my hand at a layout using mostly em's, the pictures have to remain closely the same sizes.

Share this post


Link to post
Share on other sites
If you are trying to make something pixel peferct, than use pixels, that's why they are a form of measurement. Use ems where appropriate.

Share this post


Link to post
Share on other sites
Agreed.  Use the appropriate measurement.  End of story.

Share this post


Link to post
Share on other sites
An em is the size of the font, therefore it can change. A pixel does not.

Share this post


Link to post
Share on other sites
specifically, and hopefully to draw the curtains down, 'em' is the width (in pixels) of the letter 'M' (caps) for the particular font you're using, hence them name 'em'. so as stated by effigy, it changes with the font.

[b]edit:[/b] in response to your post whilst i was typing mine - i've personally never used anything other than pixels and percentages. as for the others? i guess i'll know when to use them when i get to that stage.

Share this post


Link to post
Share on other sites
Read it all. Learn a lot. -> http://clagnut.com/blog/348/

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.