Hyperlink the Area NOT just the Text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pieandpeas
    New Member
    • Sep 2007
    • 43

    #1

    Hyperlink the Area NOT just the Text

    Hi, i have the following text

    <td><span (some style stuff) ><a href="http://www.mysite.co.u k">We are a company in the UK
    that blah blah blah <br />

    Our website is great blah blah
    </a>
    </span>
    </td>

    This is sitting in a table, i'd like the area where the text is located to be hyperlinked (e.g if you go anywhere inside this table cell, the mouse turns to a link) to 'www.mysite.co. uk' etc., not just the text itself.. how can i do this?


    Thanks

    P&P
  • pieandpeas
    New Member
    • Sep 2007
    • 43

    #2
    - the text information will have to be text, as some of the text will be dynamic.

    Comment

    • Death Slaught
      Top Contributor
      • Aug 2007
      • 1137

      #3
      Are you looking for something like this?

      [HTML] <html>

      <head>
      <title></title>
      <style type="text/css">

      span {
      width:100px;
      height:100px;
      }

      a {
      text-decoration:none ;
      color:#000;
      }

      </style>
      </head>

      <body>

      <div>
      <a href="http://www.google.com" >
      <span>
      Some Text Some Text <br />
      Some Text Some Text <br />
      Some Text Some Text <br />
      </span>
      </a>
      </div>

      </body>

      </html>
      [/HTML]

      Hope it helps, Thanks, Death

      Comment

      Working...