Edit The Code:
See Result »
Try it Yourself - ©
w3schools.com
repeat-x will repeat a background image only horizontally.