Despite trying various techniques recommended by fellow Stackoverflow users who faced similar issues, I still encountered a problem where the text appeared below the image even after applying the suggested methods to my code.
I also experimented with a method from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_image_overlay_fade but experienced the same outcome.
A custom CSS stylesheet was used in an attempt to style the HTML elements and structure the layout. However, despite defining specific properties for different classes and media queries, the desired result was not achieved as expected. Further adjustments and tweaking were required to properly align the elements on the page and resolve the issue of overlapping content.