I wanted to add an overlay with text to my images using this amazing tutorial I found:
http://codepen.io/pdelsignore/pen/uqenH
Although it worked perfectly, I faced an issue due to having a responsive website. When trying to use a % as the width / height of the '.box' element, the image disappeared. It seems like only a fixed width (e.g., px) is supported, which doesn't allow for proper scaling.
.box {
cursor: pointer;
height: 250px;
position: relative;
overflow: hidden;
width: 400px;
font-family: 'Open Sans', sans-serif;
}
If anyone has any suggestions or ideas on how to address this issue, please let me know! Thank you in advance!