+ 3

What is element of pseudo in css3 "::selection"

21st Mar 2017, 9:12 AM
Ayush
Ayush - avatar
1 Réponse
+ 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; }
21st Mar 2017, 5:29 PM
Mark Foxx
Mark Foxx - avatar