Bootstrap Registration Page with Floating Labels
A registration page built with Bootstrap with floating form labels and custom buttons - created by Start Bootstrap
by StartBootstrap
HTML
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js"></script>
<!-- This snippet uses Font Awesome 5 Free as a dependency. You can download it at fontawesome.io! -->
<body>
<div class="container">
<div class="row">
<div class="col-lg-10 col-xl-9 mx-auto">
<div class="card flex-row my-5 border-0 shadow rounded-3 overflow-hidden">
<div class="card-img-left d-none d-md-flex">
<!-- Background image for card set in CSS! -->
</div>
<div class="card-body p-4 p-sm-5">
<h5 class="card-title text-center mb-5 fw-light fs-5">Register</h5>
<form>
<div class="form-floating mb-3">
<input type="text" class="form-control" id="floatingInputUsername" placeholder="myusername" required autofocus>
<label for="floatingInputUsername">Username</label>
</div>
<div class="form-floating mb-3">
<input type="email" class="form-control" id="floatingInputEmail" placeholder="name@example.com">
<label for="floatingInputEmail">Email address</label>
</div>
<hr>
<div class="form-floating mb-3">
<input type="password" class="form-control" id="floatingPassword" placeholder="Password">
<label for="floatingPassword">Password</label>
</div>
<div class="form-floating mb-3">
<input type="password" class="form-control" id="floatingPasswordConfirm" placeholder="Confirm Password">
<label for="floatingPasswordConfirm">Confirm Password</label>
</div>
<div class="d-grid mb-2">
<button class="btn...
CSS
body {
background: #007bff;
background: linear-gradient(to right, #0062E6, #33AEFF);
}
.card-img-left {
width: 45%;
/* Link to your background image using in the property below! */
background: scroll center url('https://source.unsplash.com/WEQbe2jBg40/414x512');
background-size: cover;
}
.btn-login {
font-size: 0.9rem;
letter-spacing: 0.05rem;
padding: 0.75rem 1rem;
}
.btn-google {
color: white !important;
background-color: #ea4335;
}
.btn-facebook {
color: white !important;
background-color: #3b5998;
}