bootstrap
bootstrap
With the four tiers of grids available, you are bound to run into issues where at certain
breakpoints, the columns don't clear quite right as one is taller than the other. To fix that, use a
combination of a class .clearfix and the responsive utility classes as shown in the following
example
box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
</div>
box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
</div>
box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
enim ad minim</p>
</div>
</div>
</div>
Resize your viewport or check it out on your phone for a desired result of this example
Nesting columns
To nest your content with the default grid, add a new .row and set of .col-md-* columns
within an existing .col-md-* column. Nested rows should include a set of columns that add
up to 12.
In the following example, the layout has two columns, with the second one being split into
four boxes over two rows.
<h1>Hello, world!</h1>
box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
<h4>First Column</h4>
</div>
box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
</div>
box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
</div>
</div>
box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
ex ea commodo consequat.</p>
</div>
<div class = "col-md-6" style = "background-color: #B18904;
box-shadow: inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
</div>
</div>
</div>
</div>
</div>
The different classes available in Bootstrap for images are as explained below:
<!DOCTYPE html>
<html>
<head>
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
</script>
<script src=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js">
</script>
</head>
<body>
<div class="container">
<br>
<h3>.img-responsive class</h3>
<p>
to see effect
</p>
<img src=
"https://media.geeksforgeeks.org/wp-content/uploads/GG-2.png"
width="307" height="240"/>
</div>
</body>
</html>
Output: