+ 3
What is element of pseudo in css3 "::selection"
1 Answer
+ 5
You know when you want to copy and paste text from article, you usually click and hold our highlight what's needed right? The colour and background would then change or invert. You can change these properties in CSS to make the design more effective maybe consistent with your theme.
Try this, and you'll understand what I mean; note the ::-moz-selection browser vendor prefix for Firefox browsers:
::-moz-selection {
color: #fff; /* white */
background: #ff0000; /* red */
}
::selection {
color: #fff;
background: #ff0000;
}