ebattulga
ebattulga

Reputation: 10981

custom repeating background image using css

alt text

my image is 1. Normal repeat-x is 2.

I need image repeat like this 3.

Upvotes: 0

Views: 214

Answers (2)

GôTô
GôTô

Reputation: 8053

Merge part 1 & 2 of your image 3 and set it as the image to be repeated.

Upvotes: 0

Yi Jiang
Yi Jiang

Reputation: 50095

You can't do that with CSS. What you can do, however, is grab your favorite graphics editing program, and make this instead:

alt text

Use this with repeat-x to get what you want. See: http://www.jsfiddle.net/aPQHe/1

Upvotes: 2

Related Questions