Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Pure-CSS Float Label (v4)"
Bootstrap 4.0.0 Snippet by
tonystar
4.0.0
Preview
HTML
CSS
JS
View Full Screen
Fork
Fork this
18.8K
 
9 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.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 ----------> <div class="p-x-1 p-y-3"> <form class="card card-block m-x-auto bg-faded" style="max-width: 25rem"> <legend class="m-b-1 text-xs-center">Sign up</legend> <div class="form-group input-group"> <span class="has-float-label"> <input class="form-control" id="first" type="text" placeholder="Name"/> <label for="first">First</label> </span> <span class="has-float-label"> <input class="form-control" id="last" type="text" placeholder="Surname"/> <label for="last">Last</label> </span> </div> <div class="form-group input-group"> <span class="input-group-addon">@</span> <span class="has-float-label"> <input class="form-control" id="email" type="email" placeholder="box@example.com"/> <label for="email">Email</label> </span> </div> <div class="form-group has-float-label"> <input class="form-control" id="password" type="password" placeholder="••••••••"/> <label for="password">Password</label> </div> <div class="form-group has-float-label"> <select class="form-control custom-select" id="country"> <option selected>United States</option> <option>Canada</option> <option>...</option> </select> <label for="country">Country</label> </div> <div class="form-group"> <label class="custom-control custom-checkbox"> <input class="custom-control-input" type="checkbox"/> <span class="custom-control-indicator"></span> <span class="custom-control-description">Subscribe to newsletter</span> </label> </div> <div class="text-xs-center"> <button class="btn btn-block btn-primary" type="submit">Sign up</button> </div> </form> <div class="text-xs-center"> <a href="https://github.com/tonystar/bootstrap-float-label" target="_blank">Project on GitHub</a> • <a href="http://bootsnipp.com/tonystar/snippets/56VoR" target="_blank">Switch to Bootstrap 3</a> </div> </div>
@import "https://cdn.rawgit.com/tonystar/bootstrap-float-label/v4.0.0/dist/bootstrap-float-label.css";
// No JS!
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76