views:

85

answers:

1

Hi everyone

How to change the color of content in html input type text while entering some value. And also the cursor color when it has focus.

+1  A: 

Changing the colour when entering content is easy:

input:focus { color: yellow }

not supported by IE7 and lower. Compatibility table here.

Changing the cursor colour specifically is impossible as far as I know. It will usually take on the text content's colour which should be fine in most cases.

Pekka
just great! thanks a lot
SonOfOmer