You are here: Re: Converting px to em? « HTML « IT news, forums, messages
Re: Converting px to em?

Posted by Beauregard T. Shagnasty on 11/22/05 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?

The way they are? Do you mean the same width? Well, if you have a nav
column of 150px, try changing that to 10em.

When done this way with em units, the column will grow along with the
text size when a visitor increases his text size, rather than have the
text spill out of the column.

I only ever use pixel measurements for borders and the occasional line.
All other measurements are defined in ems. Font sizes are defined in
percentages.

--
-bts
-Warning: I brake for lawn deer

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация