Help needed here! I'm attempting to recreate the user login page for Google Chrome, and I've hit a roadblock (seriously, I don't even know where to start) with the input field of that form.
I have tried inspecting Chrome's page, but it's quite challenging to understand how to replicate the effect it has.
Let me illustrate with a bit of code.
Here is my form with input fields (as shown below). When I click on one of the fields, I want the placeholder to appear as it does in Chrome.
I really can't figure out how to achieve that kind of effect... Before clicking: not selected After clicking: result
<input type="text" name="user-name" placeholder="Username"></input>
<input type="password" name="password" placeholder="Password"></input>
input{
border:solid 1px #222;
}
input:focus{
border:solid 2px #ddb760;
}