csspoo

Search

Tags

  • Animation 1
  • Hover 2

Feed

RSS2.0
  • 2020-07-01

    Change selected text style

    Author

    Jens Törnell

    Comments

    Start a discussion

    It's possible to change the element selected text style.

    Full page

    div::selection {
      color: #fff;
      background: red;
    }

    Sources

    • https://css-tricks.com/overriding-the-default-text-selection-color-with-css/

    If you like this post, please share it! Tweet this!

  • Write for us
  • Contact us
  • About
  • License
Copyright © 2019

This page uses cookies for Google Analytics.