Is it possible to create two rows of text on an image? I came across a similar question that was answered, you can check it out here.
.imgHolder {
position: relative;
}
.imgHolder span {
position: absolute;
right: 10px;
top: 10px;
}
<div class="imgHolder">
<img src="https://www.google.com/images/srpr/logo11w.png" alt=""/>
<span>Here's the overlay text<br>Second row</span>
</div>
Although this method works well, I'm struggling to change the formatting of the second row (text size) without disrupting the text position.
I'm also confused about how the span
tag functions in the external CSS file.
If you have any insights or solutions, I would greatly appreciate your help!