This content originally appeared on DEV Community and was authored by Nikhil Bobade
Hello,
Today I choose a very simple topic to how to change a user selection color. The ::selection is a CSS pseudo-element that applies styles to the part of a document or text highlighted by the user.
::selection {
color: #fff;
background:#ff8882;
}
As an above example, you can change different colors and it's very useful I hope you like this also comments about your thoughts. For more content follow me on Instagram @developer_nikhil27.
If you want to more support me then buy me a coffee.
Thank you!
This content originally appeared on DEV Community and was authored by Nikhil Bobade

Nikhil Bobade | Sciencx (2021-04-20T13:47:18+00:00) Simple User Selection Color HTML & CSS. Retrieved from https://www.scien.cx/2021/04/20/simple-user-selection-color-html-css/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.