<!DOCTYPE html>
<html lang="en">
<head>
<link href="css/style.css" rel="stylesheet">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>My First Bootstrap Application</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<h1>The Great Stories</h1>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-4 col-sm-6 col-xs-12" >
<h2>The Great Beast</h2>
<p>There was a great beast............</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12 " >
<h2>The Great Samrat</h2>
<p>There was a great King............</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" >
<h2>The Great Cricketer</h2>
<p>There was a great cricketer............</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" >
<h2>The Great Player</h2>
<p>There was a great player............</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" >
<h2>The Great Wife</h2>
<p>There was a great Wife............</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" >
<h2>The Great Husband</h2>
<p>There was a great Husband............</p>
</div>
</div>
</div>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>
style.css
.col1{
background: red;
}
.col2{
background: green;
}
.col3{
background: yellow;
}
.col4{
background: blue;
}
.head{
background: yellow;
}
Output on smaller devices
Output on extra small devices
<html lang="en">
<head>
<link href="css/style.css" rel="stylesheet">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>My First Bootstrap Application</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<h1>The Great Stories</h1>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-4 col-sm-6 col-xs-12" >
<h2>The Great Beast</h2>
<p>There was a great beast............</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12 " >
<h2>The Great Samrat</h2>
<p>There was a great King............</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" >
<h2>The Great Cricketer</h2>
<p>There was a great cricketer............</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" >
<h2>The Great Player</h2>
<p>There was a great player............</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" >
<h2>The Great Wife</h2>
<p>There was a great Wife............</p>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" >
<h2>The Great Husband</h2>
<p>There was a great Husband............</p>
</div>
</div>
</div>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>
style.css
.col1{
background: red;
}
.col2{
background: green;
}
.col3{
background: yellow;
}
.col4{
background: blue;
}
.head{
background: yellow;
}
Output on medium devices
Output on smaller devices
Output on extra small devices
0 comments:
Post a Comment