Text Selection Styles

HTML & CSS Scripts

Author's Comments

Look carefully for specific instructions

Will work in most browsers. Not supported by IE. The "code::" part is for your code selection ( < code > ... < / code > )

Add to CSS style.

Script Code

Copy and paste to HTML

Help

Script Comments

Showing latest 6 of 6 comments

It wouldn't let me close it in here ...
To let it work , copy from the ::selection part :3

By Shootyewwithmyidiotgun on Nov 22, 2010 4:07 pm

You forgot to close the comment xD :
::-moz-selection{
backgro und:#cc0000;
color:#fff; }

::selection {
background:#cc0000;
color:#fff; }

code::-moz-selection {
background: #333333; }

code::selection {
background: #333333; }

By Shootyewwithmyidiotgun on Oct 27, 2010 12:29 pm

I did it but it won't work.

By amycutie on Jun 22, 2010 6:09 pm

it won't work >.>

By amycutie on Jun 22, 2010 6:09 pm

Hey, Thanks for the tutorial

By Haineko on Feb 23, 2010 5:49 pm

Script Details

Author TheOn3LeftBehind View profile
Submitted on Oct 19, 2009
Page views 7,365
Favorites 22
Comments 6
Reviewer Mike View profile
Approved on Oct 21, 2009

Script Tags