The rows of 6 random images at the top and bottom of the content area are laid out using the same fluid grid system that the page uses, only nested within the content area:
Code:
<div class="row"> <div class="col2"> ... </div> <div class="col2"> ... </div> <div class="col2"> ... </div> <div class="col2"> ... </div> <div class="col2"> ... </div> <div class="col2"> ... </div> </div>
No special coding is required; this is how CSS handles nested percentage based layouts.
Other Grid Widths
Using the MZ 12 unit grid system, the code could easily be modified to make the rows 2, 3, 4, 6, or 12 images wide. With a little more nesting, rows of multiples of those numbers, such as 8 or 9 could also be made.
For example, to make a row 8 images wide, the grids could be nested twice, first splitting the container into halves, then splitting each half into 4ths:
HTML Code:
<div class="row"> <div class="col6"> <div class="row"> <div class="col3"> ... </div> <div class="col3"> ... </div> <div class="col3"> ... </div> <div class="col3"> ... </div> </div> </div> <div class="col6"> <div class="row"> <div class="col3"> ... </div> <div class="col3"> ... </div> <div class="col3"> ... </div> <div class="col3"> ... </div> </div> </div> </div>
... unless, of course, you want to intentionally use a partial grid.