login form with side image using bootstrap
login form with side image using bootstrap

how to create a login form with side image using bootstrap
Before We Start
Every developer needs clean and modern elements to develop their websites, It contains pictures and a user interface element within a website. The most important one and the first section that the user sees when the user enters a website. login form with side image using bootstrap
So if you are a person who wishes to develop a website, you have to know how to create that properly.

how to create a login form with side image using bootstrap
We are here to solve your problem. In this article we discuss how to create these elements. Before we start please read the below articles which easier you to understand the process, if you are new to development.
Step 1 – Add HTML
It’s too easy and simple. Just copy and paste below code in your HTML editor between <body> </body> tag.
<div class="container">
<div class="row m-5 no-gutters shadow-lg">
<div class="col-md-6 d-none d-md-block">
<img src="https://images.unsplash.com/photo-1586077427825-15dca6b44dba?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=334&q=80" class="img-fluid" style="min-height:100%;" />
</div>
<div class="col-md-6 bg-white p-5">
<h4 class="pb-3">Login Form W3schoolWeb</h4>
<div class="form-style">
<form>
<div class="form-group pb-3">
<input type="email" placeholder="Email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp">
</div>
<div class="form-group pb-3">
<input type="password" placeholder="Password" class="form-control" id="exampleInputPassword1">
</div>
<div class="d-flex align-items-center justify-content-between">
<div class="d-flex align-items-center"><input name="" type="checkbox" value="" /> <span class="pl-2 font-weight-bold">Remember Me</span></div>
<div><a href="#">Forget Password?</a></div>
</div>
<div class="pb-2">
<button type="submit" class="btn btn-dark w-100 font-weight-bold mt-2">Submit</button>
</div>
</form>
<div class="sideline">OR</div>
<div>
<button type="submit" class="btn btn-primary w-100 font-weight-bold mt-2"><i class="fa fa-facebook" aria-hidden="true"></i> Login With Facebook</button>
</div>
<div class="pt-4 text-center">
Get Members Benefit. <a href="#">Sign Up</a>
</div>
</div>
</div>
</div>
</div>
Step 2 – Add CSS
We use some external CSS link to this code. No need to worry about this, copy and paste below code between <style></style> tag.
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css">
</head>
Copy and paste below code in your HTML editor between <style></style> tag.
<style>
body {
background: #c9ccd1;
}
.form-style input {
border: 0;
height: 50px;
border-radius: 0;
border-bottom: 1px solid #ebebeb;
}
.form-style input:focus {
border-bottom: 1px solid #007bff;
box-shadow: none;
outline: 0;
background-color: #ebebeb;
}
.sideline {
display: flex;
width: 100%;
justify-content: center;
align-items: center;
text-align: center;
color: #ccc;
}
button {
height: 50px;
}
.sideline:before,
.sideline:after {
content: "";
border-top: 1px solid #ebebeb;
margin: 0 20px 0 0;
flex: 1 0 20px;
}
.sideline:after {
margin: 0 0 0 20px;
}
</style>
At the end we will have something like this. You can change fonts, colors, backgrounds and all things that you want. Enjoy it.
Your Output

Video Tutorial
Please watch this video to better understand this tutorial and don’t forget to subscribe to our channel.
Help others to find out about this article on Social Media sites. If you have any doubt or any problem, don’t hesitate to contact us. Thereafter we will be able to help you and also make sure you bookmark our site on your browser.