by Kiro · 12y ago · 0 comments
Example:
<div class="grid__item lap--one-half desk--two-thirds">
...
</div><!--
--><div class="grid__item lap--one-half desk--one-third">
...
</div>
What's the rationale for using inline-block instead of float?Using `display: inline-block;` allows you to manipulate grids with text-level properties (e.g. `text-align: center;` to cause grid items to fill out from the center of the row), and also allows you to use `vertical-align: [top|middle|bottom];` to cause columns to start from different, well, alignments.
[1] https://github.com/csswizardry/csswizardry-grids/blob/master...