Utilizing Bootstrap Version 3.x for Grid Layouts
To properly implement Bootstrap's grid system, it is highly recommended to refer to the official documentation:
Bootstrap 3.x Docs: https://getbootstrap.com/docs/3.3/css/#grid-nesting
Ensure that the parent level row is enclosed within a .container
element. When nesting rows, always initiate a new .row
within your column.
Below is a basic layout for reference:
<div class="container">
<div class="row">
<div class="col-xs-6">
<div class="big-box">image</div>
</div>
<div class="col-xs-6">
<div class="row">
<div class="col-xs-6"><div class="mini-box">1</div></div>
<div class="col-xs-6"><div class="mini-box">2</div></div>
<div class="col-xs-6"><div class="mini-box">3</div></div>
<div class="col-xs-6"><div class="mini-box">4</div></div>
</div>
</div>
</div>
</div>
Transitioning to Bootstrap Version 4.0
Bootstrap 4.0 Docs: http://getbootstrap.com/docs/4.0/layout/grid/#nesting
Here is an updated version tailored for Bootstrap 4.0. However, it is strongly advised to thoroughly explore the grid documentation to fully utilize this feature.
<div class="container">
<div class="row">
<div class="col big-box">
image
</div>
<div class="col">
<div class="row">
<div class="col mini-box">1</div>
<div class="col mini-box">2</div>
</div>
<div class="row">
<div class="col mini-box">3</div>
<div class="col mini-box">4</div>
</div>
</div>
</div>
</div>
By following these guidelines and incorporating some additional styling, you can achieve a layout similar to the one demonstrated above.