I have this form and I want the placeholder and the input to be underlined. The underline should have the width of the input, as one types the underline grows. With Firefox is an easy thing, just applying:
input {
text-decoration: underline;
}
even though I am not sure if there is a way to style the line. Anyways, when it comes to Chrome, well, not that easy anymore!
I have tried some solutions with jQuery from this thread, but they don't work that good (they would only work proper with a monospaced typography). You can check one of these solutions outcommenting the JS in the codepen.
Any suggestions?