I have made it so that onclick the background of the textbox will change from transparent to white. However I can't seem to figure out how to place the label behind the checkbox so it gets hidden. I've tried changing the z-index and nothing happens.
I'm trying to make a placeholder that disappears on click. By default chrome doesnt seem to remove the placeholder until the user starts typing.
Question
Axel
http://jsfiddle.net/QSh64/
The code is above.
I have made it so that onclick the background of the textbox will change from transparent to white. However I can't seem to figure out how to place the label behind the checkbox so it gets hidden. I've tried changing the z-index and nothing happens.
I'm trying to make a placeholder that disappears on click. By default chrome doesnt seem to remove the placeholder until the user starts typing.
Any clues?
Cheers,
Alex
Link to comment
https://www.neowin.net/forum/topic/1135892-css-place-label-behind-textbox-as-placeholder/Share on other sites
13 answers to this question
Recommended Posts