Longer explanation as promised.
###CSS:
An A tag (anchor, href, link) is an inline tag by default, and cannot
wrap around a block-level tag like a table cell. If your table cell
contains nothing except the text of your link:
<td>
<p class="fw_lp"><a href="foo/bar">baz</a></p>
</td>
…then you can make the link appear to fill the cell by creating a
style for a block-level link.
Make a new style. In the Tag field, enter ‘a.block’ (without the
quotes), tab into the Name field and delete whatever is there, then
tab back out to make sure it “sticks” that way. Click on the Extended
button and then New, and in the Name and Value fields, enter ‘display’
and ‘block’, respectively (again, without the quotes). Okay that
dialog, then press New again and enter ‘padding’ and ‘12px’, and okay
that. (This is just a test, you can fiddle with this amount, or set it
to be different on top and bottom than left and right – whatever you
need – later.) Okay out of the stack of dialogs.
Make a second style in the exact same manner as above, tagging it
‘a.block:hover’. In the Character (+) drop-down, select Background
Color, and set something pretty.
Finally, make sure your table is set to Height Can Shrink in the
Inspector, and highlight your entire link. Open the Hyperlink dialog,
and click on the Extended button. Add a new Name/Value pair of ‘class’
and ‘block’.
Preview. The link should affect the entire table cell (as long as
there is no padding inside the cell to push it in from the edges) and
the entire cell should change color when you mouse over it.
There’s a way to do this in JavaScript, and I started writing it out,
but it’s taking too long and I still need to test it. If I find time
later I will wrap it up for you. Using JS, you can set this effect to
happen on table cells that contain more than just a link.
Walter
On Jan 21, 2009, at 9:15 AM, Walter Lee Davis wrote:
I’ll write more later when my net is back up and I’m not pecking
away at mi iPhone.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options