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.
I've never owned any apple products, but I have a coworker who has one and he said it's the best phone he's ever had. And he's pretty much had every apple phone around. His biggest like is the light weight.
Recent Achievements
BizSAR earned a badge Reacting Well
AndreaB earned a badge First Post
Huge Trailer earned a badge Week One Done
Classifyskilleducation earned a badge Week One Done
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