Latest comments
- @estebanp2022@estebanp2022
Thank you for the feedback! I've made a few edits accordingly. I'm currently trying to use flex-box only on the layout to practice and get really comfortable with it - I will look into updating the code using Grid in the future.
TY!
- @luisoliverosrdn@estebanp2022
I come across the same problem (not sure what I'm missing). I fix it by using the Transform/Translate properties and this works every time. Just include the following on the selector of whatever you're trying to center both vertically & horizontally:
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
Hope this helps!