@marcfranciss
Posted
Impressive solution to this challenge! šÆ Specially on using semantic html structure.
A little added info would be to add 'position: relative' to your 'section.mainimg' so that the '.overlay' will follow its position.
section.mainimg {
position: relative;
}
.overlay {
position: absolute;
width: 100%; // same width
height: 100%; // and height as .mainimg
top: 0; // same position as .mainimg
left: 0;
border-radius: 0.4rem;
background-color: rgb(0, 255, 247, 50%);
opacity: 0;
Keep coding great solutions!
Marked as helpful