Overriding The Default Text Selection Color With CSS - CSS-TricksFirst Faved : Sep 11 2008 by mikeFaved : 2 times with notesViewed : 28 timesFave It!
Faves for this Web page
CSS is used to add style to your web site design such as font or background colors. Many webmasters believe Cascading Style Sheets are a more efficient website tool than HTML tags because it gives you more control over your web site design by allowing you to position elements exactly how you intend. But someone else's formats may be not to your liking
Nice trick for changing the text selection color for cases where the default (blue) clashes with your color scheme!
Votes for this web page
Already a user? Sign In
Add a Fave for this Web page
- What happens when I press Publish?
- Your Fave for this Web page gets shared with the Faves community. You can access it at any time by selecting "My Faves" from the menu above.
- Why do you ask for my email address?
- We use your email address to create an account, so you can easily find your Fave again at a later time.
Related Content from Around Faves
css
-
Drop Down Menu Tutorial.
4 FaversViewed: 29 TimesQuoted: Studies show that top navigations tend to get the most visual attention when a user first visits a site. Having organized and intuitive navigation is key -- and
- neko-zou - May 25 20073 FaversViewed: 25 Times
- roberthd - Nov 14 20084 FaversViewed: 19 Times

Doesn't work for selection color in <input> boxes or <textarea>'s, unfortunately. I can have any color I want - as long as it's "blue". :-(