Is there a way to change the height of the text selection highlight without changing the line-height
of the element that contains it?
Thanks.
If you what to do this with CSS only the the answer is NO.
Only a small subset of CSS properties can be used in a rule using ::selection in its selector: color, background, background-color and text-shadow. Note that, in particular, background-image is ignored, like any other property. https://developer.mozilla.org/en-US/docs/CSS/::selection
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With