0

How do we avoid using the same highlight color as the text color?

For example: when you highlight a paragraph, the background color changes to draw attention to the paragraph, but what if the color of the paragraph is the same as the background color?

How could we avoid that? Can you guys give me some keywords?

Thank you :D

1

I think you might be looking for the ::selection css property. You can read more about it on W3Schools: https://www.w3schools.com/cssref/sel_selection.asp

Not the answer you're looking for? Browse other questions tagged or ask your own question.