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.

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; }

f6cy.png


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

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

Read more about this resource...
 
Top Bottom