• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Styling the Text Selection

Matthew Hawley

Well-known member
#1
Matthew Hawley submitted a new resource:

Styling the Text Selection - Does what it says on the tin.

Overview
So here I will show you how to style the text selection.

So lets say I wanted to add a reddish background color to the text section with white text color. We would add this:

Code:
::-moz-selection { background-color: #dd2020; color: #fff; }
::selection { background-color: #dd2020; color: #fff; }


How about we add a greenish background color with yellow text:

Code:
::-moz-selection { background-color:...
Read more about this resource...