Block Grid
From MediaWiki Pivot Skin
Block grids give you a way to evenly split contents of a list within the grid.
If you wanted to create a row of 3, 4 or 5 images or paragraphs of text that need to stay evenly spaced no matter the screen size, the block grid is for you.
Building With Predefined HTML Classes
Block grids are made from a ul.small-block-grid-#
or ul.large-block-grid-#
. These are ideal for blocked-in content generated by an application, as they do not require rows or even numbers of elements to display correctly.
These have a bit of flexibility since you have access to two separate grids between our built in 768px breakpoint. If you use the small-block-grid
only, the grid will keep its spacing and configuration no matter the screen size. If you use large-block-grid
only, the list items will stack on top of each other for small devices. If you use both of those classes combined, you can control the configuration and layout separately for each breakpoint.
<!-- Using only the small-block-grid -->
<ul class="small-block-grid-2">
<li><img src="../img/demos/demo1.png"></li>
<li><img src="../img/demos/demo2.png"></li>
<li><img src="../img/demos/demo3.png"></li>
<li><img src="../img/demos/demo4.png"></li>
</ul>
<!-- Using only the large-block-grid -->
<ul class="large-block-grid-4">
<li><img src="../img/demos/demo1.png"></li>
<li><img src="../img/demos/demo2.png"></li>
<li><img src="../img/demos/demo3.png"></li>
<li><img src="../img/demos/demo4.png"></li>
</ul>
<!-- Using both block grids together for different layouts -->
<ul class="small-block-grid-2 large-block-grid-4">
<li><img src="../img/demos/demo1.png"></li>
<li><img src="../img/demos/demo2.png"></li>
<li><img src="../img/demos/demo3.png"></li>
<li><img src="../img/demos/demo4.png"></li>
</ul>