Home › Forums › CSS › Alter background image depending on length of text. › Re: Alter background image depending on length of text.
November 15, 2012 at 10:36 am
#114432
Member
If you mean this img
Then it’s a ‘cheat’ if you will.
The way it’s done is to have a span which only uses the left part of the image as it’s background.
The span is wrapped around a link which uses the right end of the image as it’s bg.
The rest is done with padding/margins.