Re: Buttons with links and images
- From: Jim S <jim@xxxxxxxxxxxxxxx>
- Date: Thu, 17 Jul 2008 00:46:27 +0100
On Thu, 17 Jul 2008 09:43:49 +1000, dorayme wrote:
In article <1ie660j7pdqis.dlg@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Jim S <jim@xxxxxxxxxxxxxxx> wrote:
However I was pleased to find a way to clean up a minor problem that I
hadn't allowed for when I casually replaced ems with pxs. I still don't
understand the difference, but Chris gave me a solution which worked.
<http://netweaver.com.au/alt/textBox.html>
illustrates the difference. In the one case the box is specified in
pixels and does not grow (you would have to change your monitor
resolution to make it appear a different inch measurement). The text,
which can easily grow at the press of a button or two or by a user
setting, will spill out.
When the box itself is specified in em units, it grows as the user
changes text size. An em is a unit that you can think of as the height
of the type, from top of ascender to bottom of descender. Odd as it
seems, you can specify visual objects like element boxes and even
pictures in em units and they then get tied to whatever the user's font
size settings are. Very useful for flexible design.
You have to guess a bit when choosing em units for boxes, set the width
of your boxes to make sure that at least the widest unwrappable word
will fit (it gets more complex where pictures are concerned).
In the above URL, take a look at how it operates without heights (as
others have said, by far the best way to go usually)
I'm getting there :o)
--
Jim S
Tyneside UK
www.jimscott.co.uk
.
- References:
- Buttons with links and images
- From: Jim S
- Re: Buttons with links and images
- From: Chris F.A. Johnson
- Re: Buttons with links and images
- From: Jim S
- Re: Buttons with links and images
- From: Chris F.A. Johnson
- Re: Buttons with links and images
- From: Jim S
- Re: Buttons with links and images
- From: Jim S
- Re: Buttons with links and images
- From: Chris F.A. Johnson
- Re: Buttons with links and images
- From: Jim S
- Re: Buttons with links and images
- From: Chris F.A. Johnson
- Re: Buttons with links and images
- From: Jim S
- Re: Buttons with links and images
- From: Neredbojias
- Re: Buttons with links and images
- From: Jim S
- Re: Buttons with links and images
- From: dorayme
- Buttons with links and images
- Prev by Date: Re: Buttons with links and images
- Next by Date: Re: Buttons with links and images
- Previous by thread: Re: Buttons with links and images
- Next by thread: Re: Buttons with links and images
- Index(es):