I am trying to have an image that is centered both horizontally and vertically in a wrapper and then have a div placed on top of the image that is also centered horizontally and vertically.
I am not sure how to do this. I have tried using absolute positioning, but read this is not a good idea. Also, I am unsure how absolute positioning would work responsively.
It is absolutely perfect to use it when it’s usage,
in conjunction with position:relative, is
appropriate. Stacking elements one above the
other should be considered as one of those
occasions.