Hello.
I'm trying to add a background to all H2 titles (==This ones==). However, I have a lot of problems with the display of said background.
I want to have a general fixed size for general titles with small and average number of characters. However, if a title is large, I want the image to stretch (horizontally and/or vertically, depending on the space of the page and the text it contains (if the text fits in one line stretch the background horizontally, if makes a line break, stretch it vertically, and both if happens).
Currently, this, while aligning the text correctly within the image (with its padding and margin), makes the background only work with short titles, and I don't know how to solve it.
Here is the Wikia.css page of my wiki
And here an example of my problem
Thanks in advance.