![]() |
|
|
|||||||
![]() |
HTML - Table cells - linking to somewhere |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Say i have a table:
<table width="100" border="1" cellspacing="0" cellpadding="0"> <tr> <td>Blah</td> </tr> </table> I want this cell link somewhere without people having to click on the text. Can I just put <a href="page"><td>Blah</td></a> ? Next, i'm going to combine this with an onmouseover to change the cell colour, how can i put the onmouseover into a CSS class for my stylesheet? I don't want to use any javascript or anything if possible. nirvanasource |
|
|
|
|
#2 |
|
Posts: n/a
|
in post: <news:L6jPb.5310$>
"nirvanasource" <> said: > I want this cell link somewhere without people having to click on the text. > Can I just put > <a href="page"><td>Blah</td></a> ? not valid > Next, i'm going to combine this with an onmouseover to change the cell > colour, not needed > I don't want to use any javascript or anything if possible. have the link fill the <td> area, not try to apply the properties to the <td>s http://moreshit.bruciesusenetshit.in...er-thingy.html [insert usual stuff about not using tables for layout] -- brucie - i usenet nude |
|
|
|
#3 |
|
Posts: n/a
|
nirvanasource wrote:
> I want this cell link somewhere without people having to click on the text. > Can I just put > <a href="page"><td>Blah</td></a> ? > > Next, i'm going to combine this with an onmouseover to change the cell > colour, how can i put the onmouseover into a CSS class for my stylesheet? Dump the table and use something like: http://www.goddamn.co.uk/tobyink/scratch/example-link (Tested in IE 6, Opera Linux 7.23) -- Toby A Inkster BSc (Hons) ARCS Contact Me - http://www.goddamn.co.uk/tobyink/?page=132 |
|