@Ibarra11
Posted
The main issue with the hover overlay is that it is not constrained to the box that contains the image. In this case, you want want to set the article with class of main-image to relative now the overlay which has the property of absolute will be positioned relative to the article element. With that being set you can set the width of the overlay to 100%, which will be the width of the article element and give it a height of 100% and will give it the height of the article element. I also moved the margin from the image to the article element and removed padding as well. Linked is a code sandbox if you want to take a look: Code Sandbox
Marked as helpful
@PinkUv
Posted
@Ibarra11
Ah I understand, thanks for the help and the sandbox: made it very easy to walk through your steps. Appreciate it!