Make image relative to text length
<p>I'm trying to do this for my twitch, I have an image 1600x400 or something like that, it's background of my alert, so if the length of nickname changes, the background width changes relatively, but what I'm trying to do is cut image horizontally if text length changes
<a href="https://i.stack.imgur.com/qy3Ql.png" rel="nofollow noreferrer">something like this</a></p>