• Article Written 
  • on 25.01.2010
  •  at 08:22 AM
  •  by admin

How to Change the Color of Selected Text - CSS Tutorial

In this article we will find How to Change the Color of Selected Text.This is very simple and basic tips for the web designers and developers. Whenever a person select a text , its color changes to defined color. For example, on my blog theme ,if you select some text you will notice sky blue color in place of default color. Simply add these few lines in your css documents.



selected-color-heading

::-moz-selection{ background:#C1EEFB ;color:#000 } ::selection{ background:#C1EEFB; color:#000 }

This property is not supported by IE. View Demo

let us know your thoughts? If you found any other tutorials that you want to share with us,feel free to let us know by dropping in a comment.

Promote Us

  • Add to Mixx!
Ace Hosting India

Tags: ,

Untitled Document

6 Comments

  1. [...] How to Change the Color of Selected Text – CSS Tutorial [...]

  2. [...] How to Change the Color of Selected Text – CSS Tutorial [...]

  3. [...] How to Change the Color of Selected Text – CSS Tutorial [...]

  4. what we have to do for IE
    kathirvel mariappan´s last blog ..google My ComLuv Profile

  5. This article has been shared on favSHARE.net. Go and vote it!
    favSHARE´s last blog ..Make Money Online With Domain Purchase My ComLuv Profile

  6. [...] Die Farbe von markiertem Text verändern. [...]

Submit a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


CommentLuv Enabled