Container class :
Use .container for a responsive fixed width container.
Css for container in --- .container{width:1170px;}
<div class="container"> ...</div>
Use .container-fluid for a full width container, spanning the entire width of your viewport.
Css for container-fluid in --- .container-fluid{width:100%;}
<div class="container-fluid"> ...</div>
Basic Structure Code :
How to Use Bootstrap :
STEP 1: Download Bootstrap.zip file
Click Here Free Download Latest Bootstrap File
STEP 2: Link Bootstrap Css in <head></head> tag
<link rel="stylesheet" href="css/bootstrap.css" />
<script src="js/jquery.min.js" ></script >
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.min.js" ></script >
<script src="js/bootstrap.min.js"></script>
- <!DOCTYPE html><html lang="en">
- <!---Start head section --->
- <head>
- <title>Bootstrap Case</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
- <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
- </head>
- <!---End head section --->
- <body> <!---Start Bootstrap Class here section --->
- <div class="container"> <!---Container class use here --->
- <div class="row"> <!--- Start 1st row class use here --->
- <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12 " style=" min-height: 150px !important; background: #31961f !important">
- <h2 align="center" >Col-3</h2>
- </div>
- <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12" style="min-height: 150px !important; background: red !important">
- <h2 align="center" >Col-9</h2>
- </div>
- </div> <!--- End 1st row class use here --->
- <div class="row"> <!--- Start 2st row class use here --->
- <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style=" min-height: 400px !important; background: #ddd !important">
- <h2 align="center" >Col-12</h2>
- </div>
- </div> <!--- End 2st row class use here --->
- <div class="row"> <!--- Start 3st row class use here --->
- <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12" style=" min-height: 150px !important; background: #000 !important">
- <h2 align="center" >Col-2</h2>
- </div>
- <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12" style=" min-height: 150px !important; background: #31961f !important">
- <h2 align="center" >Col-2</h2></div>
- <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12" style=" min-height: 150px !important; background: #000 !important">
- <h2 align="center" >Col-2</h2>
- </div>
- <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12" style=" min-height: 150px !important; background: #31961f !important">
- <h2 align="center" >Col-2</h2>
- </div>
- <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12" style=" min-height: 150px !important; background: #000 !important"><h2 align="center" >Col-2</h2></div>
- <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12" style=" min-height: 150px !important; background: #31961f !important"><h2 align="center" >Col-2</h2></div>
- </div> <!--- End 3st row class use here --->
- </div> <!--- End Container class here --->
- <!---End Bootstrap Class here section --->
- </body>
- </html>
Output :
No comments:
Post a Comment
Thanks For Message . Keep in touch