I am presenting the following table:
<table class="table">
<thead>
<tr>
<th>Airport</th>
<th width="150px">Value</th>
</tr>
</thead>
<tbody>
<tr>
<td div class='action'>flight leaves on 13:20<br>Take the train from ABC</td>
<td>JFK</td>
<td>234</td>
</tr>
<tr>
<td>LAX</td>
<td>104</td>
</tr>
</tbody>
</table>
along with some custom CSS styling
.action {
display: none;
}
tr:hover .action {
display: block;
}
Currently, when hovering over the airport name, a text appears inline like this: https://i.sstatic.net/5Ocze.png
The goal: When hovering over an airport name, detailed information should be displayed in a line below the airport taking up the entire space. For example, hovering over JFK should show:
Airport Value
JFK 234
flight leaves on 13:20
Take the train from ABC
LAX 104
I initially tried using the display: block property, but it didn't align properly.