HOME | DD

Published: 2010-02-25 09:50:44 +0000 UTC; Views: 11666; Favourites: 167; Downloads: 169
Redirect to original
Description
A quick tutorial on how to change the default text selection/highlight color with CSS. It is one of those cool CSS3 declaration that you can use. It works for Firefox and Safari.It is very easy to use, you can use it on your website and also on your journal CSS.
I have used it on my recent journal design , just select the text with your cursor to check it out.
You can use it too, follow the Tutorial and click the Download link on left for text file with code snippet that you can paste in your CSS, replace the hexcolor codes with that of your choice and you're done!
If you don't know how to get hexcolor codes, follow this tutorial: Getting Hexcolorcodes for CSS .
For the above tut, i have used my Garden CSS as example, you can also see how selected text has different color here .
It is nifty lil CSS3 feature, maybe a lot of reader may not select your text, but those who do will be surprised so go add some jazz to your journal design!
→ Submitting it to #eCSSited Create a Tutorial - Contest .
→ Oh and have i told you? Get Firefox , it Rox!!
Related content
Comments: 51
TheDemonicDarkrai In reply to taligate [2013-07-07 20:15:57 +0000 UTC]
That's a real bummer. D:
👍: 0 ⏩: 0
Technic-WoIf [2012-03-26 09:07:31 +0000 UTC]
is there any way of making it so you can changed the color of the text
👍: 0 ⏩: 0
RedStereoVirus [2011-11-18 13:23:35 +0000 UTC]
What to use for using it in chrome?
::chrom-selection {
background:
color: ?
👍: 0 ⏩: 0
MelikeBirsenAtes [2011-08-28 11:40:52 +0000 UTC]
Your tutorial helped me a lot creating my very first journal skin: Beauty of the Dead
I credited you linking back to the actual tutorial page and your deviantart profile; both in artist's comments and at journal footer.
Thanks.
👍: 0 ⏩: 0
TANTTA69 [2011-04-08 22:47:26 +0000 UTC]
wow this is new one ^^ I will use it next time i make journal skin or something with css^^
👍: 0 ⏩: 0
spring-sky [2010-11-04 22:08:09 +0000 UTC]
will this work for microsoft internet explorer users?
👍: 0 ⏩: 1
blissart In reply to spring-sky [2010-11-08 08:23:32 +0000 UTC]
no, doesn't work in ie8 either.
👍: 0 ⏩: 1
Calyptra [2010-03-22 19:06:16 +0000 UTC]
Hi! Congrats on getting 2nd place in the contest! Your journal feature is coming soon
👍: 0 ⏩: 1
znow-white [2010-03-18 10:24:32 +0000 UTC]
Your Tutorial has been included in my Weekly Gems Article for the Resources & Stock image gallery [link]
Thank you for sharing with the community.
👍: 0 ⏩: 1
vitoriacatao [2010-03-01 12:58:29 +0000 UTC]
great job!
whats the font that you used on title?
thanks..
👍: 0 ⏩: 1
blissart In reply to vitoriacatao [2010-03-01 15:24:28 +0000 UTC]
Thank You.
I think it's Rockwell.
👍: 0 ⏩: 0
Line-of-Birds [2010-02-26 05:18:48 +0000 UTC]
Wonderfully written, clear and concise, and what a sweet thing to learn!!!
One question - what does it do on incompatible browsers?
👍: 0 ⏩: 1
blissart In reply to Line-of-Birds [2010-02-26 06:55:13 +0000 UTC]
Thank You, glad to know it's clear and concise
The incompatible browser will ignore it, so not a problem on those, it will look same on them whether you add this effect or not. Plus i think, it's just IE, i guess it works in Opera as well.
👍: 0 ⏩: 1
Line-of-Birds In reply to blissart [2010-02-26 08:26:10 +0000 UTC]
Sweet. Thanks for the info as well as the nice lil tutorial.
👍: 0 ⏩: 1
Sedma [2010-02-25 17:58:45 +0000 UTC]
I adore such small tricks that makes life nicer. Thanks
👍: 0 ⏩: 1
blissart In reply to Sedma [2010-02-26 09:02:43 +0000 UTC]
Totally! I also love quick tips, instant knowledge!
Pleasures.
👍: 0 ⏩: 1
Sedma In reply to blissart [2010-03-02 21:49:19 +0000 UTC]
I've just tried it and it works
I want more of this pls, pls, pls
👍: 0 ⏩: 1
blissart In reply to Sedma [2010-03-03 08:40:34 +0000 UTC]
Oh cool, glad.
You mean more of quick tips? haha Well, will try!
👍: 0 ⏩: 1
Sedma In reply to blissart [2010-03-03 10:28:32 +0000 UTC]
I'm watching you which means I won't miss a thing in the future
👍: 0 ⏩: 1
blissart In reply to Sedma [2010-03-04 08:13:55 +0000 UTC]
Thank You. But, frankly tho i will try, i can't promise.
👍: 0 ⏩: 1
Sedma In reply to blissart [2010-03-04 08:44:25 +0000 UTC]
Fair enough . I just want to be sure not to miss if you do
👍: 0 ⏩: 1