View Full Version : CSS & clickable image

10-20-2006, 11:17 PM
I would like to know how do I make this code a clickable image.
the image is GIF file and I want to be able to click on it and link me to another website. thanks

<style type="text/css">
table table table td {vertical-align:top ! important;}
span.blacktext12 {
visibility:visible !important;
background-position:center center;
font-size:0px; letter-spacing:-0.5px;
width:435px; height:75px; display:block !important; }
span.blacktext12 img {display:none;}

Mr J
10-20-2006, 11:49 PM
You could put the onclick event in that td

<td onclick="location='http://www.whereever.com'">

10-20-2006, 11:55 PM
Or you could do something like this:

<span class="blacktext12"><a href="http://www.whereever.com">&nbsp;</a></span>

Cheap trick with the &nbsp;, but it works.

10-21-2006, 12:19 AM
thanks guys for the quick reply and helps.

can you copy and paste my code and then add your new code into mine.
I am not so sure where to place the new code.

10-21-2006, 12:25 AM
You can't do it with CSS. The code we both gave you was based on the CSS you gave us. We guessed what the code was that you had. Post your X/HTML too and we can help more.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum