Below is a example of a Simple minimal User Login page designed using Twitter's bootstrap.
We have a user login id and password filed with a Login Button
The container that holds these elements is aligned at the middle of the page.
<div class="container">
<div class="row">
<div class="form_bg">
<form>
<h2 class="text-center">Login Page</h2>
<br/>
<div class="form-group">
<input type="email" class="form-control" id="userid" placeholder="User id">
</div>
<div class="form-group">
<input type="password" class="form-control" id="pwd" placeholder="Password">
</div>
<br/>
<div class="align-center">
<button type="submit" class="btn btn-default" id="login">Login</button>
</div>
</form>
</div>
</div>
</div>
CSS Code
body {
background:#333;
}
.form_bg {
background-color:#eee;
color:#666;
padding:20px;
border-radius:10px;
position: absolute;
border:1px solid #fff;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 320px;
height: 280px;
}
.align-center {
text-align:center;
}
Output :
More Posts related to Bootstrap,
- [Solved] Bootstrap tooltip not working
- Create Bootstrap carousel slider with Text
- Bootstrap tooltip not working
- How to disable button in Bootstrap
- Vertical align two div's in Bootstrap [HTML CSS]
- Bootstrap Button Colors Classes
- How to Change Bootstrap Carousel Slide Speed
- Right Align Text in Bootstrap framework
- How to add hint text in bootstrap input text field and text area
- Simple Login Page using Bootstrap
- Make Bootstrap Button look like a link
- Align left align text in Bootstrap
- Bootstrap Nav Menu Dropdown on hover
- Rounded Images in Bootstrap framework
- What is Bootstrap Jumbotron and how to use it
More Posts:
- How to check if variable is a number in JavaScript (NaN, typeof, regex) - JavaScript
- PowerShell: How to Get Folder Size - Powershell
- How to install Terraform on M1/M2 Mac - MacOS
- Best way to calculate elapsed time in Java using Java 8 Duration & Instant Class with Nanoseconds precision - Java
- SharePoint Server 2016 setup error - A system restart from a previous installation or update is pending. Restart your computer and run setup to continue. - SharePoint
- How to customize SharePoint Modern list form using JSON formatting - SharePoint
- JavaScript: Convert an Image into Base64 String - JavaScript
- How to find the Length of ArrayList in Java - Java