Sven
Sven

Reputation: 13275

SVG Sprites - What if element is taller and wider than image?

I want to put all SVG graphics used on a page in a sprite sheet to lower HTTP requests. Most of the sprites are actually really tiny so I have used background-size a lot. In some cases, the background image intentionally does not fill out the assigned element completely. Is it still possible to use a sprite sheet without "leaking" of other graphics on the sheet?

Upvotes: 0

Views: 123

Answers (1)

DanV
DanV

Reputation: 3240

Have you included "repeat: no-repeat" in your css?

If this isn't fixing the problem try spreading your images out further in your image sprite.

Upvotes: 1

Related Questions