Hi, I would like to outline a specific row in a table by using text on the side.
For a specific row I would like an asterisk to appear on the right or the left, without stealing anything from the width of the table, the symbol should simply be pinned outside inline with the row.
I have browsed many CSS docs and references online without any luck so far.
I think that the most appropriate way to achieve this is to use content: "*"
like so
<table>
<thead>
<tr>
<td>First point</td>
<td>adjective</td>
<td>details</td>
</tr>
</thead>
<tbody>
<tr>
<td>Dog</td>
<td>hairy</td>
<td>woof woof</td>
</tr>
<tr class="outline">
<td>Cat</td>
<td>cute</td>
<td>miao</td>
</tr>
<tr>
<td>Duck</td>
<td>round</td>
<td>quack</td>
</tr>
</tbody>
</table>
.outline {
content:"*";
}
my problem is the positioning, as far as I can tell both float: <anything>
and position: <anything>
are not producing anything close to what I’m looking for.
Thanks in advance.