link within table

admin

Administrator
Staff member
how do i create a link withing a table<br />
<br />
ie i want one of the cells to be a link<!--content-->in the td tag, add onclick="window.open('whatever.html', '_self');" style="cursor:pointer;"<br />
***WARNING*** this will NOT work all the time. it can be very glitchy with some browsers ***END WARNING***<!--content-->i would make the 'link' area the same size as the td, which would give the appearance that it's the td that is being clicked:<br />
<br />
<br />
<br />
<style type="text/css"><br />
A:link { color: #3366CC; text-decoration: none; border: 1px solid #AACCEE;width:100px;display:block;}<br />
A:visited { color: #6633CC; text-decoration: none ;width:100px;display:block;}<br />
A:hover { background: #DDEEFF; border: 1px dashed #AACCEE;width:100px;display:block; }<br />
A:active { background: #3366CC; color: #FFFFFF; border: 1px inset #3366CC;width:100px;display:block;}<br />
</style><br />
<br />
<br />
add height:12px;<br />
<br />
ofcourse adjust the values to suit your needs :)<!--content-->
 
Back
Top