[html] how to make a whole row in a table clickable as a link?

One solution that was not mentioned earlier is to use a single link in a cell and some CSS to extend this link over the cells:

_x000D_
_x000D_
table {_x000D_
  border: 1px solid;_x000D_
  width: 400px;_x000D_
  overflow: hidden;_x000D_
}_x000D_
_x000D_
tr:hover {_x000D_
  background: gray;_x000D_
}_x000D_
_x000D_
tr td {_x000D_
  border: 1px solid;_x000D_
}_x000D_
_x000D_
tr td:first-child {_x000D_
  position:relative;_x000D_
}_x000D_
_x000D_
a:before {_x000D_
  content: '';_x000D_
  position:absolute;_x000D_
  left: 0;_x000D_
  top: 0;_x000D_
  bottom: 0;_x000D_
  display: block;_x000D_
  width: 400px;_x000D_
}
_x000D_
<table>_x000D_
  <tr>_x000D_
    <td><a href="https://google.com">First column</a></td>_x000D_
    <td>Second column</td>_x000D_
    <td>Third column</td>_x000D_
  </tr>_x000D_
  <tr>_x000D_
    <td><a href="https://stackoverflow.com">First column</a></td>_x000D_
    <td>Second column</td>_x000D_
    <td>Third column</td>_x000D_
  </tr>_x000D_
</table>
_x000D_
_x000D_
_x000D_

Examples related to html

Embed ruby within URL : Middleman Blog Please help me convert this script to a simple image slider Generating a list of pages (not posts) without the index file Why there is this "clear" class before footer? Is it possible to change the content HTML5 alert messages? Getting all files in directory with ajax DevTools failed to load SourceMap: Could not load content for chrome-extension How to set width of mat-table column in angular? How to open a link in new tab using angular? ERROR Error: Uncaught (in promise), Cannot match any routes. URL Segment

Examples related to html-table

Table column sizing DataTables: Cannot read property 'length' of undefined TypeError: a bytes-like object is required, not 'str' in python and CSV How to get the <td> in HTML tables to fit content, and let a specific <td> fill in the rest How to stick table header(thead) on top while scrolling down the table rows with fixed header(navbar) in bootstrap 3? Sorting table rows according to table header column using javascript or jquery How to make background of table cell transparent How to auto adjust table td width from the content bootstrap responsive table content wrapping How to print table using Javascript?

Examples related to bootstrap-4

Bootstrap 4 multiselect dropdown react button onClick redirect page bootstrap 4 file input doesn't show the file name How to use Bootstrap 4 in ASP.NET Core Bootstrap 4: responsive sidebar menu to top navbar CSS class for pointer cursor Change arrow colors in Bootstraps carousel Bootstrap 4 Dropdown Menu not working? Search input with an icon Bootstrap 4 How to import popper.js?