Resource icon

Styling the Text Selection

Matthew Hawley

Well-known member
Matthew Hawley submitted a new resource:

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

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:

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


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

::-moz-selection { background-color:...

Read more about this resource...
Top Bottom