Google News
logo
How To Create A Basic Bootstrap Website
  Source Code
  Complete Website Source Code
  HTML Code
<html>
<head>
<title>How To Create A Basic Bootstrap Website</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript">
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-100094943-1', 'auto');
  ga('send', 'pageview');
</script>
</head>
<body>
<div id="wrapper">

<!----- Start Header (or) Menu ------>

<nav class="navbar navbar-default">
    <div class="navbar-header">
    <button type="button" data-target="#navbarCollapse" data-toggle="collapse" class="navbar-toggle">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    </button>
    <!--<a href="#" class="navbar-brand">LOGO</a>-->
    </div>
    <div id="navbarCollapse" class="collapse navbar-collapse">
    <ul class="nav navbar-nav">
        <li><a href="#!">Home</a></li>
        <li><a href="#!">About Us</a></li>
        <li><a href="#!">Servises</a></li>
        <li><a href="#!">Gallery</a></li>
        <li><a href="#!">Blog</a></li>
        <li><a href="#!">Contact Us</a></li>
    </ul>
    </div>
</nav>



<!----- End Header (or) Menu ------>


<!----- Start Slider (or) Banner ------>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
      <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
      <li data-target="#myCarousel" data-slide-to="1"></li>
      <li data-target="#myCarousel" data-slide-to="2"></li>
    </ol>
    
    <!-- Wrapper for slides -->
    <div class="carousel-inner">
      <div class="item active">
        <img src="images/banner.jpg" alt="Slider 1" style="width:100%;">
      </div>
    
      <div class="item">
        <img src="images/banner.jpg" alt="Slider 2" style="width:100%;">
      </div>
    
      <div class="item">
        <img src="images/banner.jpg" alt="Slider 3" style="width:100%;">
      </div>
    </div>
    
    <!-- Left and right controls -->
    <a class="left carousel-control" href="#myCarousel" data-slide="prev">
      <span class="glyphicon glyphicon-chevron-left"></span>
      <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#myCarousel" data-slide="next">
      <span class="glyphicon glyphicon-chevron-right"></span>
      <span class="sr-only">Next</span>
    </a>
</div>
<!----- End Slider (or) Banner ------>
    
<!----- Start Content ------>
<div class="row">
    <div class="content">
    
        <div class="com-md-3 col-sm-4 col-xs-12">
            <div class="content-header">Content Left</div>
            <div class="clearfix"></div>
            <img src="images/content-left.jpg" class="img-responsive" />
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the 
            industry's standard dummy text ever since the 1500s,..</p>
            <a href="#" class="btn">Read More</a>
        </div>
        
        <div class="com-md-9 col-sm-8 col-xs-12">
            <div class="content-header">Content Right</div>
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the 
            industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and
            scrambled it to make a type specimen book...</p>
            <h4> Sample Heading</h4>
            <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the 
            industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and
            scrambled it to make a type specimen book..</p>
        </div>
        
    </div>
</div>
 <!------ End Content ------->
 
<!------ Start Footer ------->
<div class="row">
    <div id="footer">
        <ul>
            <li><a href="#">Home</a></li>
            <li><a href="#">About Us</a></li>
            <li><a href="#">Servises</a></li>
            <li><a href="#">Gallery</a></li>
            <li><a href="#">Blog</a></li>
            <li><a href="#">Contact Us</a></li>
        </ul>
        <div class="clearfix"></div>
        <div id="copyrights">
            &copy; 2018. All rights reserved by <a href="http://www.freetimelearning.com" target="_blank">Free Time Learn</a>.
        </div>
    </div>
</div>
<!------ End Footer ------->

</div>

<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
</body>
</html>
  CSS Code
@charset "utf-8"; /****   Developed by http://www.freetimelearning.com/    *****/
/* CSS Document */
/* (#) means ID Based */
/* (.) means class Based */

*{
	margin-left:auto;
	margin-right:auto;
}
.row{ margin:0px;}
body{
	font-family:Arial, Helvetica, sans-serif;
	background:#FFF;
	margin:0px;
	}
.clearfix{ clear:both;}
#wrapper{ 
	width:1022px; 
	margin:0px auto; 
	background:#FFF; 
	border:1px solid #CCC;
}
@media only screen and (min-width:320px) and (max-width:480px){ #wrapper{ width:375px;} }
@media only screen and (min-width:600px) and (max-width:768px){#wrapper{ width:768px;} }


/*********** Start Header (or) Menu **********/
.navbar-default{ 
	border-radius:2px; 
	background:#CCC; 
	margin-bottom:0px; 
	padding:15px 0px;
}
.navbar-default .navbar-nav>li>a{ 
	color:#000; 
	text-align:center; 
	padding:7px 50px; 
	font-size:14px; 
	font-weight:bold; 
	text-transform:uppercase;
}
.navbar-default .navbar-nav>li>a:hover{ background:#FFF;}
@media only screen and (min-width:600px) and (max-width:768px){
	.navbar-default .navbar-nav>li>a{padding:7px 28px; }
	}
/*********** End Header (or) Menu **********/

/****** Start Cntent **********/
.content{ margin:5px 0px;}
.content-header{
	background:#CCC;
	color:#000;
	font-size:18px;
	text-align:justify;
	padding:7px 10px 7px 10px;
}
p{ line-height:26px; text-align:justify;}
.btn{
	background:#069;
	color:#FFF;
	border-radius:2px;
	font-size:12px;
	padding:7px 20px;
	text-decoration:none;
	}
.btn:hover{
	background:#004F75;
	color:#FFF;
	}
@media only screen and (min-width:320px) and (max-width:480px){
	.content-header{ margin-top:10px;}
	}
/****** Start Cntent **********/

/****** Start Footer ********/
#footer{ 
background:#CCC;
}
#footer ul{
	list-style:none;
	}
#footer ul li{
	list-style:none;
	font-family:arial;
	font-size:10px;
	text-transform:uppercase;
	padding:15px 0px 5px 0px;
	margin:5px 0px 12px;
	float:left;
	font-weight:bold;
}
#footer ul li a{
	padding:10px 55px 10px 55px;
	margin:5px 0px;
	text-decoration:none;
	color:#000;
	}
#footer ul li a:hover{
	color:#FFF;
	}

#copyrights{
	font-size:12px; 
	color:#000;
	text-align:center;
	padding:5px 0px 10px 0px;
	}
#copyrights a{ 
color:#069;
text-decoration:none;
}
#copyrights a:hover{
	color:#666;
	}
/********** End Footer *********/
@media only screen and (min-width:320px) and (max-width:480px){
	#footer{ width:100%; background:#CCC;}
	#copyrights{color:#000;}
	#copyrights a{ color:#000;}
	#footer ul{ padding:0px 25px;}
	#footer ul li{ padding:15px 0px 5px; margin:5px 0px 12px;}
	#footer ul li a{padding:10px 6px; text-align:center; color:#000; font-size:9px;}
}
/******** End Mobile  Responsive ************/

/******** Start Tablets (or) Small screens  Responsive ************/
@media only screen and (min-width:600px) and (max-width:768px){
	#footer{ width:100%; background:#CCC;}
	#copyrights{color:#000;}
	#copyrights a{ color:#000;}
	#footer ul{ padding:0px 60px;}
	#footer ul li{ padding:15px 0px 5px; margin:5px 0px 12px;}
	#footer ul li a{padding:10px 30px; color:#000; text-align:center;}
}