![CSS Grid padding right on the last item on horizontal scrolling with grid- auto-flow: column; - Stack Overflow CSS Grid padding right on the last item on horizontal scrolling with grid- auto-flow: column; - Stack Overflow](https://i.stack.imgur.com/f0l5e.png)
CSS Grid padding right on the last item on horizontal scrolling with grid- auto-flow: column; - Stack Overflow
![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/mfx4kbm3pds91.png?auto=webp&s=acb28fa8d57e3bc221726421ce674b73cbd62ffe)
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
![Learn CSS Padding in one video | Padding top, Padding bottom, Padding-right | Easy tutorial. - YouTube Learn CSS Padding in one video | Padding top, Padding bottom, Padding-right | Easy tutorial. - YouTube](https://i.ytimg.com/vi/wChq9NmA678/maxresdefault.jpg)