Here is my solution from another question, to which I have already answered:
fooobar.com/questions/120925 / ...
The basic idea is that the color of the cursor matches the color of the text. So, the first thing you do is make the text transparent, thus distracting the cursor. You can then make the text visible again with a shadow shadow.
input [type = "text"] {
color: transparent;
text-shadow: 0 0 0 # 000;
}
input [type = "text"]: focus {
outline: none;
}
Attention:
It seems to work under iOS 8. (Thanks @Altaveron for the info)
Another idea of ββmine is a bit more hacked and requires javascript.
Part of HTML and CSS:
You make 2 input fields and position them exactly one above the other using z-index, etc. Then you make the top input box completely transparent, without focus, without color, and so on. You must disable the visible and lower input so that it displays only the contents of the above input, but actually does not work.
Javascript part:
After the above, you synchronize the two inputs. When you press the key or when changing, you copy the contents of the higher input to the lower one.
Summing up all of the above: you enter an invisible input and is sent to the backend when the form is submitted, but each update of the text in it will be reflected in the lower visible but disabled input field.
Lajos meszaros
source share