I have six images displayed full width using a flex grid. I would like the image information (along with a visit button) to appear on hover, and the brightness of the image should decrease. I am struggling to position the information in the center of the image. Should I use relative positioning for the image and absolute positioning for the image info in this case? Thank you in advance
#works {
color: rgba(31, 31, 31, 0.767);
padding: 0;
text-align: center;
}
#works .flex-container {
display: flex;
flex-wrap: wrap;
padding: 0;
margin: 0;
justify-content: stretch;
}
#works .flex-container .box {
display: flex;
flex-direction: column;
margin: 0;
padding: 0;
width: 33.3333%;
}
#works .flex-container .box img {
display: block;
padding: 0;
width: 100%;
}
...
...
...
</div>
</div>
</section>