devlint / gridlex

Just a CSS Flexbox Grid System
http://gridlex.devlint.fr
MIT License
1.38k stars 145 forks source link

.grid-column-center does not center horizontally #70

Closed acnebs closed 6 years ago

acnebs commented 6 years ago

I want a column grid whose items are centered horizontally. Presumably, I should be able to use .grid-column-center to achieve this.

However, the [class*="grid-"][class*="-center"] always adds justify-content: center; even though to horizontally center a flex-direction: column you need to use align-items: center.

acnebs commented 6 years ago

Never mind.

I somehow managed to miss -middle. It would be good if you could have -center always center horizontally and -middle always center vertically though.

Closed for now.