Welcome to All Things GHL - Your Go To Resources for Code Snippets

Highlight Selected Text

Customize the color of text when highlighted.

::selection {
  background: #9900ff !important;
  color: #ffffff !important;
}
::-moz-selection {
  background: #9900ff !important;
  color: #ffffff !important;
}
::-webkit-selection {
  background: #9900ff !important;
  color: #ffffff !important;
}

Funnel Instructions

  1. Copy code and paste into the Custom CSS section.

  2. Note: You can edit the selection color for a specific container or element by adding its selection before ::selection.

Last updated

Was this helpful?