The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Sprite and background-size:
I´m trying to creat a infinite background image with sprite and background-size using:
background-size:contain; but when I put it on the image fly away instantly.
Any idea, tutorial or link about this?
My code is:
background: #0e3d77 url(../pagoranking_child/images/pagorakingsprite.png) no-repeat center -330px;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
Perhaps creating this in Codepen would help us see your problem.
I’m not sure you understand what a sprite is for.