Bootstrap snippet and html example. Page lock

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.

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 3.3.0 included, to get the result that you can see in the preview selection

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<div  class="principal-container">
    <div class="container bootstrap snippets bootdey">
        <div class="page page-lock ng-scope">
            <div class="lock-centered clearfix">
                <div class="lock-container">
                    <section class="lock-box">
                        <div class="lock-user ng-binding">John smith</div>
                        <div class="lock-img"><img src="https://bootdey.com/img/Content/User_for_snippets.png" alt=""></div>
                        <div class="lock-pwd">
                            <form class="ng-pristine ng-valid">
                                <div class="form-group">
                                    <input type="password" placeholder="Password" class="form-control">
                                    <a href="#/" class="btn-submit">
                                        <i class="fa fa-arrow-right"></i>
                                    </a>
                                </div>
                            </form>
                        </div>            
                    </section>
                </div>
            </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 3.3.0 included, to get the result that you can see in the preview selection

.principal-container {
  background-color:#5bc0de;   
  height:800px;
  width:100% !important;
}

.page-lock .lock-centered {
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  margin-top: -65px;
}
@media screen and (min-width: 768px) {
  .page-lock .lock-centered {
    margin-top: -75px;
  }
}
.page-lock .lock-container {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.page-lock .lock-box {
  position: absolute;
  left: 0;
  right: 0;
}
.page-lock .lock-box .lock-user {
  background: white;
  width: 50%;
  float: left;
  height: 50px;
  line-height: 50px;
  margin-top: 50px;
  padding: 0 20px;
  -moz-border-radius-topleft: 2px;
  -webkit-border-top-left-radius: 2px;
  border-top-left-radius: 2px;
  -moz-border-radius-bottomleft: 2px;
  -webkit-border-bottom-left-radius: 2px;
  border-bottom-left-radius: 2px;
  color: #1c7ebb;
}
.page-lock .lock-box .lock-img img {
  position: absolute;
  border-radius: 50%;
  left: 40%;
  width: 80px;
  height: 80px;
  border: 6px solid white;
  background: white;
}
@media screen and (min-width: 768px) {
  .page-lock .lock-box .lock-img img {
    left: 33%;
    width: 150px;
    height: 150px;
    border: 10px solid white;
  }
}
.page-lock .lock-box .lock-pwd {
  background: white;
  width: 50%;
  float: right;
  height: 50px;
  line-height: 50px;
  padding: 0 0 0 50px;
  margin-top: 50px;
  -moz-border-radius-topright: 2px;
  -webkit-border-top-right-radius: 2px;
  border-top-right-radius: 2px;
  -moz-border-radius-bottomright: 2px;
  -webkit-border-bottom-right-radius: 2px;
  border-bottom-right-radius: 2px;
  color: #1c7ebb;
}
@media screen and (min-width: 768px) {
  .page-lock .lock-box .lock-pwd {
    padding: 0 0 0 80px;
  }
}
.page-lock .lock-box .lock-pwd input {
  width: 80%;
  height: 50px;
  color: #555555;
  border: 0;
}
.page-lock .lock-box .lock-pwd .btn-submit {
  position: absolute;
  top: 50%;
  right: 20px;
}

Similar snippets

Bootstrap example and template. Profile page

Profile page

Bootstrap example and template. recent activity

recent activity

Bootstrap example and template. shopping cart table

shopping cart table

Bootstrap example and template. bs4 Task Board page

bs4 Task Board page

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. profile edit data and skills

profile edit data and skills

Bootstrap example and template. read email

read email

Bootstrap example and template. bs4 profile header card

bs4 profile header card

Bootstrap example and template. Page lock

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 7.1K views, Using this bootstrap snippet you have the following benefits:

Bootstrap 3.3.0

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.3.0 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