Welcome to my blog

Converting from pixels to em or % · CSS · / 14 04 2005 - 14:04

We all know that using pixels for a font-size isn’t the most preferable way.

But what if you have to do a redesign where the original Css is made up of pixels for font-size. Experimenting, guessing?

Sure, you can do that. But there’s a better way:

To go from pixels to em’s, simply divide the pixels by 16.
So, 8px will give you 0.5em.

Another way is to have this conversion table by hand.


|

Quick links

Links to other parts of the site.

Friends

People who have been good enough to me that I would call them friends.

Syndicate this blog

Reading:

Listening to:

Kid Frost: La Raza

Categories

Find it

Search

archives:


Other:

login

Unless otherwise expressly stated, all original material of whatever nature created by Dzinelabs and included in this site and any related pages, including the weblog's archives, is licensed under The Creative Commons License.

Creative Commons Licence logo

Powered by TextPattern.



Warning: include() [function.include]: Unable to access /home/www/dzinelab/counter/ipcount.php in /home/d38625/public_html/blog/textpattern/publish.php(793) : eval()'d code on line 152

Warning: include(/home/www/dzinelab/counter/ipcount.php) [function.include]: failed to open stream: No such file or directory in /home/d38625/public_html/blog/textpattern/publish.php(793) : eval()'d code on line 152

Warning: include() [function.include]: Unable to access /home/www/dzinelab/counter/ipcount.php in /home/d38625/public_html/blog/textpattern/publish.php(793) : eval()'d code on line 152

Warning: include(/home/www/dzinelab/counter/ipcount.php) [function.include]: failed to open stream: No such file or directory in /home/d38625/public_html/blog/textpattern/publish.php(793) : eval()'d code on line 152

Warning: include() [function.include]: Failed opening '/home/www/dzinelab/counter/ipcount.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/d38625/public_html/blog/textpattern/publish.php(793) : eval()'d code on line 152