I am looking to encircle specific words with an image circle.
<p>
<span class="Subjekt">Father</span>
<span class="Predicate">brings</span>
</p>
using
.Subject:before {
position: absolute;
background-image: url(images/markup/circle.png);
background-size: 100% 100%;
display: inline-block;
margin-left: -20px;
width: 100px;
height: 50px;
content:"";
}
This method works well, but the size is fixed.
Is there a way to make the pseudo element's width relative to the .Subject element?