0

why pseudo selection code " ::-moz-selection" not working

CSS p::-moz-selection {background: #8bc34a; color: #fff;} p::selection {background: #8bc34a; color: #fff;} HTML <p>The following example demonstrates how to use the ::selection element to change the color of the selected text.</p>

27th Mar 2019, 1:14 PM
AbdelKader
2 Answers
0
It works all right. Just select the text then the effect is visible.
27th Mar 2019, 1:23 PM
Seniru
Seniru - avatar
0
I thought that it wasn't working too... sometimes the solution is closer and easier than I think! Thank you Seniru
31st Aug 2019, 4:07 PM
MiLa ToRRo
MiLa ToRRo - avatar