|
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]
|