DEV Community

Discussion on: 7 Ways to Escape CSS Hell

Collapse
 
rylandking profile image
Ryland @ Stackbit

It can be hard to both vertically and horizontally center elements. Goal was to show the ways to do that.

Collapse
 
drmalus profile image
Szklenár Ferenc

Understand. Thanks for your answer! :) Yes you are right.
But what about display:flex; justify-content: center; align-items: center solution?
It isn't worked for you in some cases or something?