Help me with bringing links to table cells

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Help me with bringing links to table cells

    Hi !

    I would like to add the link functionality to the
    whole table cell (not only to its content).

    The purpose is the text inside the cell and the link
    itself is going to be frequently modified in Contribute,
    while the client wants the whole cell area to be "clickable"
    - not the text inside only.

    As the text must remain editable - I am unable
    to "bake" it into an image to provide all-over clickability.

    The following construction: "<a href="link"><td>text</td></a>
    works in Explorer but is not validated as <a> tag is not
    allowed in this position according to XHTML1.1.

    What is the right "legal" solution then ???

    Thank you,
    Ziggi
    Ziggi Guest

  2. Similar Questions and Discussions

    1. Vertical alignment in table cells
      If I create a table and then merge several cells vertically, I can enter some text and can set the vertical alignment of the new 'spanned' cell to...
    2. Right justify in all the cells of a table?
      When I try to right justify all of the cells in a table only the right most cells are right justified. Is there any way to right justify all of the...
    3. Tabs in table cells
      Once I have got a tab in a table I simply copy it when I need another. Saves going to the Type menu all the time.
    4. tabbing between table cells
      Is there a shortcut for "insert end of column" to tab between table cells. Its so clunky. At this rate I think I'll do the tables in a wordprocessor...
    5. background in table cells
      ameen: Yes. Click in the cell and use the Property Inspector to specify a background image. Be aware that in order to see the background fully,...
  3. #2

    Default Re: Help me with bringing links to table cells

    Ziggi:

    Use CSS to define a specific style for that cell's link, e.g.,

    ..special a { display:block; height:23px; width:140px; } /* These
    height/width numbers are arbitrary */

    Then in your page's code, do this -

    <td class="special">

    Now the entire cell will be 'clickable'.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Ziggi" <admin@NOSPAM.pm-studio.pl> wrote in message
    news:ca6u9l$56i$1@forums.macromedia.com...
    Hi !

    I would like to add the link functionality to the
    whole table cell (not only to its content).

    The purpose is the text inside the cell and the link
    itself is going to be frequently modified in Contribute,
    while the client wants the whole cell area to be "clickable"
    - not the text inside only.

    As the text must remain editable - I am unable
    to "bake" it into an image to provide all-over clickability.

    The following construction: "<a href="link"><td>text</td></a>
    works in Explorer but is not validated as <a> tag is not
    allowed in this position according to XHTML1.1.

    What is the right "legal" solution then ???

    Thank you,
    Ziggi


    Murray *TMM* Guest

  4. #3

    Default Re: Help me with bringing links to table cells

    Thanks !

    I've also found a good info here:

    [url]http://www.apptools.com/examples/tdcolor.php[/url]

    Ziggi
    Ziggi Guest

  5. #4

    Default Re: Help me with bringing links to table cells

    Yep - exactly the same approach.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Ziggi" <admin@NOSPAM.pm-studio.pl> wrote in message
    news:ca72sr$bhs$1@forums.macromedia.com...
    Thanks !

    I've also found a good info here:

    [url]http://www.apptools.com/examples/tdcolor.php[/url]

    Ziggi


    Murray *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139