I’m following a tutorial and in the media query for min-width: 620px, he uses left/right margin of 20% to center the portfolio grid items. Is there another way to do this? It kind of feels like a hack instead of the proper way to do it, but nothing else I try seems to work.
Here’s the codepen: https://codepen.io/hey-its-j/pen/QWJVKWM
I think I see what threw me off. He set them as display: block; and then added margin, instead of your idea of using flex, which would’ve made more sense to me. I tried positioning them with flex properties, not thinking about how setting display: block; overrode the original display: flex. Thanks for the help!
Thanks, I’ll try that too. I’ll look into auto grids as well. I’ve been getting more into grid, but could definitely use more practice. Thanks for the help!