My Vertical Center

Source: Internet
Author: User

As follows:

<! DOCTYPE html>

<meta charset= "Utf-8" >
<meta http-equiv= "x-ua-compatible" content= "Ie=edge" >
<meta name= "viewport" content= "Width=device-width, initial-scale=1" >
<meta name= "description" content= "" >
<meta name= "Author" content= "" >
<link rel= "icon" href= ". /.. /favicon.ico ">

<title>signin Template for Bootstrap</title>

<!--Bootstrap Core CSS--
<link href= "Http://cdn.bootcss.com/bootstrap/3.3.2/css/bootstrap.min.css" rel= "stylesheet" >
<style>
. vertical-center {
Position:absolute;
top:40%;
left:50%;
Transform:translate (-50%,-50%);
}
</style>
<body>
<div class= "Container vertical-center" style= "border:1px solid blue;" >
<div class= "col-lg-4 col-lg-offset-4 col-sm-6 col-sm-offset-3 col-xs-8 col-xs-offset-2" id= "Logindev" style= "border : 1px solid red; " >
<form class= "Form" >
<label for= "Inputemail" class= "sr-only" >email address</label>
<input type= "Email" id= "Inputemail" class= "Form-control" placeholder= "email address" required= "autofocus=" ">
<label for= "Inputpassword" class= "Sr-only" >Password</label>
<input type= "Password" id= "Inputpassword" class= "Form-control" placeholder= "password" required= "" >
<div class= "checkbox" >
<label>
<input type= "checkbox" value= "Remember-me" > Remember Me
</label>
</div>
<button class= "btn btn-lg btn-primary Btn-block" type= "Submit" >sign in</button>
</form>
</div>
</div> <!--/container--
</body>

My Vertical Center

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.