Reputation: 33
Im trying to change my ul li list to use it with background image & sprites, but i have this problem with background-repeat, what i'm missing?
Upvotes: 0
Views: 635
Reputation: 4294
Since your sprite is tiled vertically, you need to use an element that will have a height equal to that of each of the sprite images.
One option is to use another element, like a span, and apply the background to that. http://jsfiddle.net/mestekweb/R7MU4/2/
You could also apply the style to the link element. http://jsfiddle.net/mestekweb/R7MU4/3/
In both cases, you'll have to adjust the margins and padding of the lists and/or links to compensate.
Upvotes: 1