@ServalFakeSubmitted over 1 year ago
I'm not quite sure if using position relative and eyeballing it is the best way to center it, if anyone uses something more reliable please let me know
I'm not quite sure if using position relative and eyeballing it is the best way to center it, if anyone uses something more reliable please let me know
If you use:
min-height: 100vh; display: grid; place-content: center;
on the body then it will center it.
Good job!
Is this a good solution for a color overlay effect on the image? When would it be good to use em or rem over one another?
Kevin Powell explains this very well.
https://www.youtube.com/watch?v=_-aDOAMmDHI&t=3s&ab_channel=KevinPowell
em changes sizes in relation to the parent element while rem looks at the root..