4 ms·
All the people who are still perplexed by this, have to admit that they haven’t heard of or tried flexbox. It works beautifully (in conjunction with Autoprefixe
by SimeVidas 12y ago
All the people who are still perplexed by this, have to admit that they haven’t heard of or tried flexbox. It works beautifully (in conjunction with Autoprefixer).
- mark_up 12y ago> (in conjunction with Autoprefixer). Then not beautifully at all. It would be beautiful if it worked on IE8+ without the use of any 3rd party plugins.
- stormbrew 12y agoHere's the thing: Most of us who are perplexed are actually perplexed because is was something you used to be able to do trivially and then a new standard came along and made it unreasonably hard for about 15 years. An eternity in software development. Entire generations of paradigms have come and gone in the time it's taken for CSS to fill this gap. That will never stop being perplexing, no matter how many new models they throw on top to try to fix it.
- intruder 12y agoHeard of flexbox, it's nice but here's one thing I haven't been able to do with it: Center a bunch boxes in a row and have overflowing boxes show up on the next row to the left or right. Doesn't work, it will center the next row as well. I haven't found a non JS solution to this yet.
- seekingcharlie 12y agoNot sure if I know exactly what you mean, but can you use :nth-child for the nth box that shouldn't be centered?
- DiNovi 12y agonot sure excalty what you're descibing, but shouldnt flex-wrap work to fix this?
- cyphunk 12y agoflexbox will be nice. once widely supported. <div style="display:flex; align-items:center; justify-content:center; width:100%; height:100%">dynamic both v and h aligned center</div>