How to keep input field placeholder value even after its value is typed in (field has no label)
I am trying to keep the input field placeholder and it works when in focus, but when the input contains a value the placeholder disappears. Any idea how to make this? Fiddle : <input type="text" placeholder="Input some text"> Style sheet input:focus::-webkit-input-placeholder{ color: #202020; font-size: 10px; -webkit-transform: translateY(-15px); transform: translateY(-15px); visibility: visible !important; opacity: 1 padding:3px; } input{ height: 45px; border: 1px solid #1b1a1a; width: 350px; padding: 10px; }
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.