seesync
05-01-2006, 07:54 AM
Hi,
If I have an image set in the background property of a table, is there any way to make it a link so it is clickable?
Help much appreciated, thanks!
coothead
05-01-2006, 10:22 AM
http://www.htmlforums.com/showthread.php?t=74596
ronaldb66
05-01-2006, 12:46 PM
No, you cannot make a background image clickable.
You can make a link clickable, and give that a transparent background and somehow position it over the table, but I don't know if that's what you're after.
Masterslave
05-01-2006, 01:38 PM
With a background image in a division I do this:
<div id="top" onclick="window.location.href='index.php';"></div>
In the ID top you set a background-image
#top
{
background: url("images/background.jpg");
background-position: top left;
background-repeat: no-repeat;
}
This only works if you've enabled Javascript in your browser.