Can you apply a link to an HTML item?

Is it possible to apply a link to an HTML item, specifically a text box with a background colour or image applied? I know I can apply a link to the text in the item, but I want the link to work on the whole box.

See this demo page for an example:

http://www.noawebsites.eu/storageandinteriors/storage.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Strictly speaking, no you cannot. There are tricks you can pull to
make it look as if that’s what is happening, but an HTML box (either a
TD or a DIV) cannot be wrapped by an A tag, which is what it would
take to literally apply a link to an HTML box in Freeway.

If your box contains a single link, and if that is the only text in
the box, then you can make it appear as if the box is the link using
CSS. You give the link the style property display:block, and then you
use padding to create its dimensions. The surrounding HTML box is set
to no padding, and no height, and therefore collapses around the link.
So if you roll over the HTML box, you are actually rolling over the
link, and so the entire box appears to be linked.

Walter

On Jul 24, 2009, at 4:50 AM, ralfy wrote:

Is it possible to apply a link to an HTML item, specifically a text
box with a background colour or image applied? I know I can apply a
link to the text in the item, but I want the link to work on the
whole box.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter. I will give that a try.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I select the text in the HTML item, add a link, then create a style and add the display:block and padding attributes via the Extended panel. The box previews at the correct size and the text is a link, but not the box. Am I doing something wrong?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options