DEV Community

Discussion on: Horizontal centering in CSS

crinklesio profile image
Kevin Pennekamp Author • Edited on

Aah ofcourse, you are right. That is another solution for the same problem. Thanks for it.

I did found one downside though. This method feels to me to make it more difficult to have it scale better for responsiveness in cases where the child elements are less than 100vw and more than the --gap. But it is a personal preference I think.