::selection { background: #000000; color: #ffffff }
Is resulting in a dark grey selection color, not full black (#000000
). Changing opacity makes no difference.
How do I make the selection color appear as #ffffff
?
::selection { background: #000000; color: #ffffff }
Is resulting in a dark grey selection color, not full black (#000000
). Changing opacity makes no difference.
How do I make the selection color appear as #ffffff
?
This worked for me:
::selection {
background: rgba(0, 0, 0, 0.99);
color: #FFF;
}
I had the same problem, I had to change the code to background-color instead since the above solution did not work for me.
::selection {
background-color: #000000;
color: #FFF;
}