{"id":4061,"date":"2017-02-22T02:45:42","date_gmt":"2017-02-22T07:45:42","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=4061"},"modified":"2024-02-20T16:47:05","modified_gmt":"2024-02-20T13:47:05","slug":"change-text-selection-color-css","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/change-text-selection-color-css\/","title":{"rendered":"How to Change Text Selection Color Using CSS"},"content":{"rendered":"\n
The CSS3 ::selection<\/strong> pseudo-element is one of those things that were drafted into the CSS3<\/a> standard then somewhere down the road it was pulled out therefore it is not part of the official specification. Suffice to say that you can still use it in all browsers to change text selection should you want to do it.<\/p>\n\n\n\n Changing the selection colors on a website is probably one of the least done things across the board. Nevertheless, we will take a good look at how it works.<\/p>\n\n\n\n The CSS3 ::selection<\/strong> Selector supports four properties namely background, color, cursor, and outline. As with CSS properties, these are generally self-explanatory and they work in exactly the same way as all CSS properties.<\/p>\n\n\n\n