HTML CSS examples for Bootstrap:Grid Layout
Row based template
<!DOCTYPE html> <html> <head> <title>Bootstrap Theme Simply Me</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <style> body {<!-- w ww . ja v a2 s . com--> line-height: 1.8; color: white; } p {font-size: 16px;} .margin {margin-bottom: 45px;} .bg-1 { background-color: #gray; color: #ffffff; } .bg-2 { background-color: #BBBBB; color: #ffffff; } .bg-3 { background-color: #ffffff; /* White */ color: #555555; } .bg-4 { background-color: #EEEEE; color: #fff; } .container-fluid { padding-top: 70px; padding-bottom: 70px; } .navbar { padding-top: 15px; padding-bottom: 15px; border: 0; border-radius: 0; margin-bottom: 0; font-size: 12px; letter-spacing: 5px; } .navbar-nav li a:hover { color: #1abc9c !important; } </style> </head> <body> <!-- Navbar --> <nav class="navbar navbar-default"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Me</a> </div> <div class="collapse navbar-collapse" id="myNavbar"> <ul class="nav navbar-nav navbar-right"> <li><a href="#">WHO</a></li> <li><a href="#">WHAT</a></li> <li><a href="#">WHERE</a></li> </ul> </div> </div> </nav> <!-- First Container --> <div class="container-fluid bg-1 text-center"> <h3 class="margin">Who Am I?</h3> <img src="https://www.java2s.com/style/demo/Google-Chrome.png" class="img-responsive img-circle margin" style="display:inline" alt="Bird" width="350" height="350"> <h3>I'm an adventurer</h3> </div> <!-- Second Container --> <div class="container-fluid bg-2 text-center"> <h3 class="margin">What Am I?</h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p> <a href="#" class="btn btn-default btn-lg"> <span class="glyphicon glyphicon-search"></span> Search </a> </div> <!-- Third Container (Grid) --> <div class="container-fluid bg-3 text-center"> <h3 class="margin">Where To Find Me?</h3><br> <div class="row"> <div class="col-sm-4"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <img src="https://www.java2s.com/style/demo/Google-Chrome.png" class="img-responsive margin" style="width:100%" alt="Image"> </div> <div class="col-sm-4"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <img src="https://www.java2s.com/style/demo/Opera.png" class="img-responsive margin" style="width:100%" alt="Image"> </div> <div class="col-sm-4"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <img src="https://www.java2s.com/style/demo/Firefox.png" class="img-responsive margin" style="width:100%" alt="Image"> </div> </div> </div> <!-- Footer --> <footer class="container-fluid bg-4 text-center"> <p>Bootstrap Theme Made By <a href="http://java2s.com">a site</a></p> </footer> </body> </html>