Bootstrap 4 Float Label

Size
2,732 Kb
Views
74,888

How do I make an bootstrap 4 float label?

Pure CSS implementation of Float Label pattern for Bootstrap 4.. What is a bootstrap 4 float label? How do you make a bootstrap 4 float label? This script and codes were developed by Anton Staroverov on 18 November 2022, Friday.

Bootstrap 4 Float Label Previews

Bootstrap 4 Float Label - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Bootstrap 4 Float Label</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.4/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='https://cdn.rawgit.com/tonystar/bootstrap-float-label/v4.0.1/dist/bootstrap-float-label.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <form class="card card-block bg-faded"> <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> <label class="has-float-label"> <input class="form-control" type="text" placeholder="Surname"/> <span>Last</span> </label> </div> <div class="form-group input-group"> <span class="input-group-addon">@</span> <label class="has-float-label"> <input class="form-control" type="email" placeholder="[email protected]" value="[email protected]"/> <span>Email</span> </label> </div> <div class="form-group has-float-label"> <input class="form-control" id="password" type="password" placeholder="••••••••"/> <label for="password">Password</label> </div> <label class="form-group has-float-label"> <select class="form-control custom-select"> <option selected>United States</option> <option>Canada</option> <option>...</option> </select> <span>Country</span> </label> <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> <button class="btn btn-block btn-primary" type="submit">Sign up</button>
</form>
<!---->
<a href="https://github.com/tonystar/bootstrap-float-label" target="_blank"> <img src="https://img.shields.io/github/stars/tonystar/bootstrap-float-label.svg?style=social&label=Star"/>
</a> <script src="js/index.js"></script>
</body>
</html>

Bootstrap 4 Float Label - Script Codes CSS Codes

/*
Powered by:
- https://github.com/tonystar/bootstrap-float-label
- https://github.com/tonystar/float-label-css
- https://v4-alpha.getbootstrap.com/
*/
body { position: relative; max-width: 25rem; margin: 2rem auto;
}
a { display: block; padding: 10px; position: absolute; z-index: -1; top: 1rem; left: 100%; margin-left: -62px; -webkit-transition: all .2s; transition: all .2s;
}
a:hover { margin-left: 0;
}

Bootstrap 4 Float Label - Script Codes JS Codes

// No JS!
Bootstrap 4 Float Label - Script Codes
Bootstrap 4 Float Label - Script Codes
Home Page Home
Developer Anton Staroverov
Username tonystar
Uploaded November 18, 2022
Rating 3
Size 2,732 Kb
Views 74,888
Do you need developer help for Bootstrap 4 Float Label?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Anton Staroverov (tonystar) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!