"form"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/andytran/pen/WbveyE?limit=all&page=8&q=form" /> <script src="//use.typekit.net/bzf3ugx.js"></script> <script>try{Typekit.load();}catch(e){}</script> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'> <style class="cp-pen-styles">/* Form Styles */ body { background: #f8f8f8; font-family: 'proxima-nova', sans-serif; font-size: 14px; font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .container { width: 600px; margin: 80px auto; } .container header { text-align: center; } .container header h2 { color: #333; font-size: 22px; font-weight: 300; line-height: 24px; margin: 0 0 15px; padding: 0; } .container header p { color: #666; margin: 0 0 35px; } .container footer { width: 100%; padding: 15px 40px; margin: 0 0 -40px -40px; color: #666; font-size: 12px; text-align: center; } .container footer a { color: #333; text-decoration: none; } .container footer .fa { color: #e74c3c; } /* Magic Starts here */ .form { background: #fff; border: 1px solid #e5e5e5; border-radius: 5px; } .form:before, .form:after { content: ''; display: block; clear: both; } .form .field { width: 50%; padding: 20px 20px 5px; border-bottom: 1px solid #e5e5e5; box-sizing: border-box; float: left; transition: 0.3s linear; } .form .field:nth-child(2n) { border-left: 1px solid #e5e5e5; } .form .field label { color: #a1a1a1; font-size: 12px; font-weight: 600; text-transform: uppercase; } .form .field input { outline: none; background: none; width: 100%; border: 0; padding: 5px 0; color: #666; font-family: 'proxima-nova'; font-size: 16px; font-weight: 600; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: 0.3s linear; } .form .checkbox { display: block; clear: both; text-align: center; margin-bottom: 25px; padding-top: 30px; color: #a1a1a1; font-family: 'proxima-nova'; font-size: 12px; font-weight: 600; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .form .checkbox a { color: #009ddc; text-decoration: none; } .form input[type="checkbox"] label { background: #000; height: 30px; border: none; } .form button { cursor: pointer; display: block; background: #eb5635; width: 180px; margin: 0 auto; margin-bottom: 40px; padding: 16px 0; border: none; border-radius: 100px; color: #fff; font-family: 'proxima-nova'; font-size: 16px; font-weight: 600; text-transform: uppercase; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: 0.2s linear; } .form button:hover { background: #f07d63; } </style></head><body> <div class='container'> <header> <h2>Sign up, it’s free</h2> <p>It is a long established fact that a reader will be distracted</p> </header> <!-- / START Form --> <div class='form'> <form> <div class='field'> <label for='username'>Username</label> <input id='username' name='username' type='text' value='Andy Tran'> </div> <div class='field'> <label for='email'>Email Address</label> <input id='email' name='email' type='email' value='hello@andytran.me'> </div> <div class='field'> <label for='password'>Password</label> <input id='password' name='password' type='password' value='password'> </div> <div class='field'> <label for='rpassword'>Repeat Password</label> <input id='rpassword' name='rpassword' type='password' value='password'> </div> <div class='checkbox'> <input id='checkbox' name='checkbox' type='checkbox'> <label for='checkbox'> By signing up, you agree with the <a href='#'>terms and conditions</a> </label> </div> <button>Sign Up</button> </form> </div> <!-- / END Form --> <footer> Made with <i class='fa fa-heart animated infinite pulse'></i> by <a href='http://andytran.me'>Andy Tran</a> </footer> </div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script >// Credits to Mohammad Shehbaaz for the design // https://dribbble.com/shots/1819287-Register-Form?list=shots&sort=popular&timeframe=now&offset=387 $('input').bind('focus', function() { $(this).parent('.field').css({ 'background-color' : '#f5f8f9'}); }); $('input').bind('blur', function() { $(this).parent('.field').css({ 'background-color' : 'none'}); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: