By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,836 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

Hyperlink the Area NOT just the Text

P: 43
Hi, i have the following text

<td><span (some style stuff) ><a href="http://www.mysite.co.uk">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
Jan 7 '08 #1
Share this Question
Share on Google+
2 Replies


P: 43
- the text information will have to be text, as some of the text will be dynamic.
Jan 7 '08 #2

Death Slaught
100+
P: 1,137
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
Jan 7 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.