An Interest In:
Web News this Week
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
April 20, 2021 01:47 pm GMT
Original Link: https://dev.to/nikhil27b/simple-user-selection-color-html-css-145
Simple User Selection Color HTML & CSS
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!
Original Link: https://dev.to/nikhil27b/simple-user-selection-color-html-css-145
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To