Fluid Layout Example - HTML CSS Bootstrap

HTML CSS examples for Bootstrap:Grid Layout

Description

Fluid Layout Example

Demo Code

ResultView the demo in separate window

<!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 Fluid 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>

 </head> <!--from w  w  w. j av a 2  s.c  om-->
 <body> 
  <nav id="myNavbar" class="navbar navbar-default navbar-inverse navbar-fixed-top" role="navigation"> 
   <div class="container-fluid"> 
    <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://java2s.com" target="_blank">About</a></li> 
      <li><a href="http://java2s.com" target="_blank">Contact</a></li> 
     </ul> 
    </div> 
   </div> 
  </nav> 
  <div class="jumbotron"> 
   <div class="container-fluid"> 
    <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.
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> 
  <div class="container-fluid"> 
   <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.
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 &raquo;</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.
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 &raquo;</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.
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 &raquo;</a></p> 
    </div> 
   </div> 
   <hr> 
   <div class="row"> 
    <div class="col-xs-12"> 
     <footer> 
      <p>&copy; Copyright 2018  b ook 2s.com</p> 
     </footer> 
    </div> 
   </div> 
  </div>   
 </body>
</html>

Related Tutorials