Miguel Ángel Durán on Twitter: "Puedes usar flex y una solución un poco hacky para centrar los elementos usando un margen. No es elegante 🙈 pero te puede sacar de apuros para
![By using margin auto, the element will then take up the specified width, and the remaining space will be split between the left and right. So when I display flex to container By using margin auto, the element will then take up the specified width, and the remaining space will be split between the left and right. So when I display flex to container](https://preview.redd.it/by-using-margin-auto-the-element-will-then-take-up-the-v0-mfx4kbm3pds91.png?width=640&crop=smart&auto=webp&s=abd3729290665d9938eec60de9fb036706ae48b3)
By using margin auto, the element will then take up the specified width, and the remaining space will be split between the left and right. So when I display flex to container
![css - How to remove left and right margins from all wrapped rows in flexbox (without nth-child or js) - Stack Overflow css - How to remove left and right margins from all wrapped rows in flexbox (without nth-child or js) - Stack Overflow](https://i.stack.imgur.com/Ukl9p.png)