I need help creating a design where an image and h2
title appear on top of the image...
Below is a reference screenshot:
I am looking to achieve something similar.
CSS:
h2 {
position: relative;
letter-spacing: 1px;
display: inline-block;
position: relative;
background: #222;
padding: 11px;
top: 195px;
opacity: .8;
font-size: 13px;
/* left: 349px; */
text-align: left;
/* bottom: -52px; */
width: 100%;
}
.post img {
margin-left: 1px;
margin-top: -32px;
}
I'm not too experienced with JS or jQuery. Is there a way to only display 2 or 3 words? I believe that could solve the issue. Thank you in advance for any assistance provided.