2 ms·
Sorry, but the need to put "<!-- -->" everywhere is a dealbreaker for me. Example: <div class="grid__item lap--one-half desk--two-thirds"> ... </d
by Kiro 12y ago
Sorry, but the need to put "<!-- -->" everywhere is a dealbreaker for me.
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?
- csswizardry 12y agoYou can actually enable a CSS-only hack[1] to avoid using the comments. 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/csswizardry-grids.scss#L103-L115 https://github.com/csswizardry/csswizardry-grids/blob/master...