Pixels to Ems Conversion - Incredible Em
Journal Entry: Thu May 8, 2008, 2:31 PM
- Mood:
Neutral - Listening to: Puff Daddy
Are you still confuse about the calculation of px to em. Now no worries you can use a simple formula to convert your px size to your exact em calculation.
Formula : 1 ÷ parent font-size × required pixel value = em value
1px = 0.0625em
16px which is Default Browser Font Size which work for all browsers
Now what you have to do all is put
html { font-size: 62.5%;}
in your css file; which will set 1em = 10px.
We do this to make a calculation easy and workable because it is hard to calculate with 16px.
Example:
if you have 980px to convert in em is: 980/10 = 98.0 em
divide each pixel value by 10 to convert in em.
Devious Comments
--
Flamingo's are okey
--
Read our guideline in our journal **How to submit your design work**
--
Fill this pot with your designs..
Cheers!
--
Portfolio ::: [link]
You're a member now .. thank you for joining us .
Submission Officer ~t1987n
--
--
check out my husband ~jahshalom
and my clubs
=macusers *pixel-pax *Club-Vector *vexelove
--
* PROUD MEMBER OF CLUBS *
* *Arabdesign *designerscouch *
FOUNDER ON DesignersJunior Comunity [link]
PROUD MEMBER OF: Template Artists: [link]
--
----------------------
artalliance, DesignersJunior & webgraphix community member
--
Graphite, charcoal, ink and coloured portraits: [link]
Now available as PRINTS!
"The significant problems that exist today cannot be solved by the same level of thinking that created them." -Albert Einstein
one of my fav design...
one of my first comment............
--
a glimpse, a light, i am following.
Previous PageNext Page