by extra88 · 2y ago · 0 comments
> top: 0; bottom: 0; > left: 0; right: 0;
You can replace this with inset: 0;
I don't see any issues selecting the text?
If you remove the positioning from the `td` and add `tr { position: relative; }` then you'll find you can activate the link by clicking anywhere in the row but you can't select the text in the row (because the link's pseudo-element is "covering" it). However, if you start a text selection outside the table, you can select the whole table (or the first however many rows you want).
This post includes some JavaScript as a progressive enhancement that tries to differentiate text selection from clicks.
https://css-tricks.com/block-links-the-search-for-a-perfect-...