Seeking assistance with creating a mobile login page using Bootstrap 5 and custom CSS. Struggling to align form items inside the form properly. Any suggestions on how to achieve this?
.row {
height: 100vh;
justify-content: center;
align-items: center;
/* border: solid 3px black; */
}
.card {
height: 380px;
width: 100%;
background-color: aliceblue;
/* border: solid 3px green; */
}
.card-body {
height: 80%;
width: 100%;
/* border: solid 3px red; */
}
.form-content {
height: 100%;
width: 100%;
/* border: solid 3px blue; */
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="02606d6d76717670637242372c332c31">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="./css/custom.css">
<title>Document</title>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<form class="form-content">
<div class="form-group">
<label for="userEmail" class="form-label">Email address</label>
<input type="email" class="form-control" id="userEmail" aria-describedby="emailHelp">
</div>
<div class="form-group">
<label for="userPass" class="form-label">Password</label>
<input type="password" class="form-control" id="userPass">
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<style>
.row {
height: 100vh;
justify-content: center;
align-items: center;
/* border: solid 3px black; */
}
.card {
height: 380px;
width: 100%;
background-color: aliceblue;
/* border: solid 3px green; */
}
.card-body {
height: 80%;
width: 100%;
/* border: solid 3px red; */
}
.form-content {
height: 100%;
width: 100%;
/* border: solid 3px blue; */
}
</style>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a7c4c8d5c2e7958996978899">[email protected]</a>/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="20424f4f54535452415060150e110e13">[email protected]</a>/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
</body>
</html>
Any help or guidance would be greatly appreciated!