1

I got this:

::selection {
    background-color: #80b3ff;
    color: #000000;
}
::-moz-selection {
    background-color: #80b3ff;
    color: #000000;
}
::-o-selection ....

But when I try to define all selectors together it doesn't work.

::selection, ::-moz-selection, ::-o-selection, ::-webkit-selection {
    background-color: #80b3ff;
    color: #000000;
}

What am I doing wrong?

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
Basti
  • 606
  • 1
  • 12
  • 22

1 Answers1

3

This happens because ::selection is a pseudo element. There's a good explanation for this here.

Community
  • 1
  • 1
JSideris
  • 5,101
  • 3
  • 32
  • 50