View Full Version : Table Backgrounds

05-01-2006, 07:54 AM

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!

05-01-2006, 10:22 AM

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.

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

background: url("images/background.jpg");
background-position: top left;
background-repeat: no-repeat;

This only works if you've enabled Javascript in your browser.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum