Below is the snippet of HTML code I am working with:
<h4 class="clickbelow">This is a very long line that overflows onto a new line when the width is small.</h4>
Here is the CSS that I have implemented:
.clickbelow:before {
content: url("https://i.sstatic.net/lBFti.png");
top: 10px;
position: relative;
}
Currently, when the text overflows to a new line, the second line appears under the image added using content
. I want the second line text to have the same margin as the first line.
You can view and play around with the code on this fiddle: http://jsfiddle.net/hdbwkcmq/