csswizardry-grids icon indicating copy to clipboard operation
csswizardry-grids copied to clipboard

.grid--middle on a single .grid__item

Open moonbeetle opened this issue 12 years ago • 1 comments

Strange. Looks like a grid needs to contain at least two .grid__item to make .grid--middle work.

moonbeetle avatar Nov 04 '13 09:11 moonbeetle

The .grid--middle on the .grid adds a vertical-align: middle to the directly nested .grid__items. That means all nested grid items will align vertically, but only on the middle of the highest grid item. If you only have one grid item you won't see any changes as it just has it's own "100%" height.

graste avatar Dec 11 '13 17:12 graste