I need to repeat the background image strip, which is from inside of the sprite image format. i have aligned the images in sprite in vertical.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The short answer is no, you cannot repeat a part of a sprite image.
What you could do is use
repeat-xto repeat the image on the horizontal axis, but your repeating image segment must have the same height as the element it is assigned to, and all other sprites present in that larger image must be above or below your repetitive segment.(Similarly, use
repeat-yand place all your other sprites to the left and right of your background segment)Your best option is to cut out and use the 5×5 pixels background from a separate image, which you can easily
repeatover the entire element.