You are here: Re: How Can I Controll Text Size on My Website? « HTML « IT news, forums, messages
Re: How Can I Controll Text Size on My Website?

Posted by Jonathan N. Little on 04/19/07 14:52

vunet.us@gmail.com wrote:

> My web application needs a text size control in one place. I tested
> IE7, set pixels keep the size in control unless an option "Ignore Font
> Sizes..." checked in the browser. But FF2 behaves differently: it
> always increases the size despite the pixels in CSS.
> So, there is no ultimate solution other than what was mentioned?
>
Maybe you are approaching the problem from the redirection. Most likely
your are trying to fit text within a fix block set in pixels. Instead of
trying to fix the text to the pixels, define the box in a dimension that
is proportional to the font:

..pigeonHoled { width: 10em; height: 5em; }

the block will now scale with respect to the font.

BTW your original approach of "fixing the font" may also fail because
the visitor does not have the font that you are using and what is
substituted has different proportion or kerning...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

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

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