"Login form with background image"
Bootstrap 3.0.0 Snippet by Divscodebd

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html> <head> <title>Frist Html Titutorial</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css"> <style type="text/css"> </style> </head> <body> <div class="form-box"> <div class="form-group"> <label for="usr">Name:</label> <input type="text" class="form-control" id="usr"> </div> <div class="form-group"> <label for="pwd">Password:</label> <input type="password" class="form-control" id="pwd"> </div> <div class="form-group"> <input type="submit" class="btn btn-default submit-btn" value="Submit"></input> </div> </div> </body> </html>
body { background-image: url(http://www.goturkeytourism.com/assets/hero/xwaterfalls-turkey.jpg.pagespeed.ic.St4Hoq28sZ.jpg); background-size: cover; margin: 0px; padding: 0px; } .form-box { top: 50%; left: 50%; position: absolute; width: 500px; height: 400px; margin-top: -200px; background: rgba(255, 0, 0, 0.5); margin-left: -250px; padding: 20px 30px; line-height: 50px; } .form-box .form-group label{ color: #fff; } .form-box .form-group input{ border-radius: 0px; height: 35px; background: none; color: #fff; } .submit-btn{ border-radius: 0px; background: #fff!important; color: red!important; padding: 10px 25px; font-weight: 600 }

Related: See More


Questions / Comments: