Emran Ibrahim• 30
@ServalFake
Submitted
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
@Sorpanda
@ServalFake
Submitted
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
@Sorpanda
Posted
If you use:
min-height: 100vh; display: grid; place-content: center;
on the body then it will center it.
Good job!
Marked as helpful
@Tascate
Submitted
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?
@Sorpanda
Posted
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..