HTML CSS examples for Bootstrap:Grid Layout
Fixed Layout Example
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap 3 Fixed Layout Example</title> <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/1.12.4/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <style type="text/css"> body{<!--from w w w . j av a2 s. com--> padding-top: 70px; } </style> </head> <body> <nav id="myNavbar" class="navbar navbar-default navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbarCollapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Tutorial Republic</a> </div> <div class="collapse navbar-collapse" id="navbarCollapse"> <ul class="nav navbar-nav"> <li class="active"><a href="http://java2s.com" target="_blank">Home</a></li> <li><a href="http://www.tutorialrepublic.com/about-us.php" target="_blank">About</a></li> <li><a href="http://www.tutorialrepublic.com/contact-us.php" target="_blank">Contact</a></li> </ul> </div> </div> </nav> <div class="container"> <div class="jumbotron"> <h1>Learn to Create Websites</h1> <p>This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.</p> <p><a href="http://java2s.com" target="_blank" class="btn btn-success btn-lg">Get started today</a></p> </div> <div class="row"> <div class="col-xs-4"> <h2>HTML</h2> <p>This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.</p> <p><a href="http://java2s.com" target="_blank" class="btn btn-success">Learn More »</a></p> </div> <div class="col-xs-4"> <h2>CSS</h2> <p>This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.</p> <p><a href="http://java2s.com" target="_blank" class="btn btn-success">Learn More »</a></p> </div> <div class="col-xs-4"> <h2>Bootstrap</h2> <p>This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.This is a test. This is a test. This is a test.</p> <p><a href="http://java2s.com" target="_blank" class="btn btn-success">Learn More »</a></p> </div> </div> <hr> <div class="row"> <div class="col-xs-12"> <footer> <p>© Copyright 2018 b ook 2s.com</p> </footer> </div> </div> </div> </body> </html>