Skip to content

Instantly share code, notes, and snippets.

@devloe
Created August 22, 2014 16:38
Show Gist options
  • Save devloe/884226b0216359a78ee4 to your computer and use it in GitHub Desktop.
Save devloe/884226b0216359a78ee4 to your computer and use it in GitHub Desktop.
Natural form killer.
<form>
<p>Hola, me llamo <input type="text" placeholder="nombre" />, y tengo <input type="text" placeholder="edad" /> años.</p>
<p>Vivo en <input type="text" placeholder="ciudad" /> y me gusta <input type="text" placeholder="hobby" />.</p>
<button type="submit" class="btn btn-default">Enviar</button>
</form>
$("input").autosizeInput();
form{padding:40px; font-size:20px;}
form input{border:none; background:transparent; border-bottom:1px dashed red; width:80px; padding:0; text-align:center; color:red;}
input:focus{outline:none;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment