Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change cursor color without changing text color?

Tags:

html

css

I want to have the cursor #FFF while my font is #000.

Is that possible?

like image 519
AndrewFerrara Avatar asked Apr 11 '11 00:04

AndrewFerrara


1 Answers

Try this

<style>
input {
  color: rgb(60, 0, 248);  /* change [input cursor color] by this*/
  text-shadow: 0px 0px 0px #D60B0B; /* change [input font] by this*/
  -webkit-text-fill-color: transparent;
}
</style>
like image 83
Balvant Ahir Avatar answered Oct 22 '22 09:10

Balvant Ahir