I am working on creating a webpage layout similar to the one in the link below:
The maximum width for the layout is set to 1600px. However, I am facing challenges in making it fully responsive. This is because all the boxes are given widths in percentages. The first section of the layout is split into two equal parts - 50% on the left and 50% on the right.
Within the 50% on the left, I have included 4 images with each having a width of 50%.
In the 50% on the right, there is a single image with a width of 100%.
While the structure remains responsive when only images are used, adding text below each image in a box with fixed width (66px) causes issues in responsiveness when the screen size is reduced.
Is there a solution to make this layout properly responsive? I attempted making the text box an overlay on the image by positioning it absolutely at the bottom, which resolves the issue but hides the bottom part of the image behind the text box. I want both the image to be fully visible and the text box to remain below it.
Any suggestions or thoughts on how to achieve this? I am open to using JavaScript if it offers a good solution.