iotacss-grid
v0.1.6
Published
Grid object for iotaCSS
Downloads
2
Readme
Grid Object
The grid object is responsible for building a smart grid when used with Size, Push or Pull utilities.
Installation
npm install --save iotacss-grid
Dependencies
Options
$iota-grid--aligned : false !default;
$iota-grid--rev : false !default;
$iota-grid-gutter-default : 20px !default;
$iota-grid-gutter-extra : () !default;
Example
<div class="o-grid">
<div class="o-grid__col u-1/2">
Column 1
</div><!--
--><div class="o-grid__col u-1/2">
Column 2
</div>
</div>
Do you see this empty HTML comment ''? This is used to fight the space between the grid columns, because they are inline block elements. If you want to read more about this fix or find some alternatives, head over here.