In the MIZ framework, there are two methods for creating Cols and organizing content in a Col layout. In this section, we will examine the first method, which is done using the col classes. This method allows you to divide columns into various sections as specified by the user.
In the first method, Col creation is done using the col classes. For instance, if you set the number of columns to 12, the MIZ framework will create col classes from 1 to 12. This allows you to place content flexibly on the page.
To use the col classes in MIZ, follow these steps:
<div class="w-100 row">
<div class="col-4 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
<p class="txt-center">4 of 12</p>
</div>
<div class="col-4 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
<p class="txt-center">4 of 12</p>
</div>
<div class="col-4 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
<p class="txt-center">4 of 12</p>
</div>
</div>
<div class="w-100 row">
<div class="col-2 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
2 of 12
</div>
<div class="col-7 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
8 of 12
</div>
<div class="col-5 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
5 of 12
</div>
</div>
<div class="w-100 row">
<div class="col-2 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
2 of 12
</div>
<div class="col-2 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
2 of 12
</div>
<div class="col-2 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
2 of 12
</div>
<div class="col-2 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
2 of 12
</div>
<div class="col-2 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
2 of 12
</div>
<div class="col-2 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
2 of 12
</div>
</div>
<div class="w-100 row">
<div class="col-4 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
4 of 12
</div>
<div class="col-4 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
4 of 12
</div>
<div class="col-4 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
4 of 12
</div>
</div>
<div class="w-100 row">
<div class="col-12 py-2 border-width-1 border-solid border-color bg-primary-color txt-center">
12 of 12
</div>
</div>
You can adjust the number of columns and the size of each column according to your specific needs. To do this, simply use the appropriate col classes with the correct numbers to properly place your content on the page.
The number of columns is controlled by the $conf-cols variable in miz/sass/config/_dims.scss