Forum Moderators: not2easy
I have a table with some options. It would like that this whole table was a link ( I tried to use in css "display:block" ) but did not work.
The table is this way:
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td width="2%" class="Ver12">ID</td>
<td width="2%" class="Ver12">S</td>
<td width="26%" class="Ver12">name</td>
<td width="42%" class="Ver12">message </td>
<td width="14%" class="Ver12">date</td>
<td width="14%" class="Ver12">answers</td>
</tr>
</table>
Could they help?
OBS: Kind, it would like that the whole table was a link, in other words, in anywhere of this table where the user put the mouse would be a link, so much in the parts writings as in the parts not writings.
I am doing a site for a customer and he wants the site be done in table because his workers do not understand anything of CSS, because of this he wants most site done in tables. Because of this it has to be with these tables that I passed. In case it are impossible to do this way, in tables, ae can be in CSS same, but only in last case.
If someone can help, it would get very thankful.
Thank you very much at once by the help.
HTML:
<table>
<tr>
<td><a href="#">test</a></td>
</tr>
</table>
table tr td { padding: 0px; }
table tr td a { display: block;
padding: 10px; }
HTML:
<table>
<tr>
<td onclick="document.location.href = 'http://www.webmasterworld.com/';">test</td>
</tr>
</table>
table tr td { padding: 10px;
cursor: pointer; }
<div id="container">
<div id="columnOne">
columnOne
</div>
<div id="columnTwo">
columnTwo
</div>
<div id="columnThree">
columnThree
</div>
<br style="clear:both;" />
</div>
div#columnOne, div#columnTwo, div#columnThree { width: 33%;
float: left; }