Bootstrap snippet and html example. bs4 login page with background cover

This html snippet was created to help web designers, web developers, front-end and back-end developer save time. Use it for free in your project and build your app faster, You can also download the HTML, CSS, and JS code.
Tags: login,page,background

HTML code

This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 4.1.1 included, to get the result that you can see in the preview selection


<div class="container-fluid px-3">
  <div class="row min-vh-100">
    <div class="col-md-5 col-lg-6 col-xl-4 px-lg-5 d-flex align-items-center">
      <div class="w-100 py-5">
        <div class="text-center"><img src="//ssl.gstatic.com/accounts/ui/logo_2x.png" alt="..." style="max-width: 6rem;" class="img-fluid mb-4">
          <h1 class="display-4 mb-3">Sign in</h1>
        </div>
        <form method="get" class="form-validate" novalidate="novalidate">
          <div class="form-group">
            <label>Email Address</label>
            <input name="loginUsername" type="email" autocomplete="off" required="" data-msg="Please enter your email" class="form-control">
          </div>
          <div class="form-group mb-4">
            <div class="row">
              <div class="col">
                <label>Password</label>
              </div>
              <div class="col-auto"><a href="#" class="form-text small text-muted">Forgot password?</a></div>
            </div>
            <input name="loginPassword" type="password" required="" data-msg="Please enter your password" class="form-control">
          </div>
          <!-- Submit-->
          <button class="btn btn-lg btn-block btn-primary mb-3">Sign in</button>
          <!-- Link-->
          <p class="text-center"><small class="text-muted text-center">Don't have an account yet? <a href="register-2.html">Register</a>.</small></p>
        </form>
      </div>
    </div>
    <div class="col-12 col-md-7 col-lg-6 col-xl-8 d-none d-lg-block">
      <!-- Image-->
      <div style="background-image: url(https://bootdey.com/img/Content/flores-amarillas-wallpaper.jpeg);" class="bg-cover h-100 mr-n3"></div>
    </div>
  </div>
</div>

CSS code

This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 4.1.1 included, to get the result that you can see in the preview selection


body{
    margin-top:20px;
}
.form-control {
    height: calc(2.25rem + 2px);
    border: 1px solid #dee2e6;
    border-radius: 0;
    padding: .375rem .75rem;
}
.container-fluid {
    padding: 0 30px;
}
small, .small {
    font-size: 80%;
    font-weight: 400;
}
.bg-cover {
    background-size: cover;
}

Similar snippets

Bootstrap example and template. login with overlay image

login with overlay image

Bootstrap example and template. Social profile head

Social profile head

Bootstrap example and template. bs4 profile with messages and edit

bs4 profile with messages and edit

Bootstrap example and template. Login form with icon

Login form with icon

Bootstrap example and template. profile with data and skills

profile with data and skills

Bootstrap example and template. portfolio grid with filter menu and isotopejs

portfolio grid with filter menu and isotopejs

Bootstrap example and template. white chat

white chat

Bootstrap example and template. bs4 crud users

bs4 crud users

Bootstrap example and template. bs4 login page with background cover

About this bootstrap example/template

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This code example currectly have 446 views, Using this bootstrap snippet you have the following benefits:

Bootstrap 4.1.1

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>

This code example is based on bootstrap 4.1.1 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working