This image explains what I want:
Of course I could achieve this in photoshop, but I want it to work for infinite width, so that's why I'd like to be able to achieve this via css or javascript.
How can this be done?
This image explains what I want:
Of course I could achieve this in photoshop, but I want it to work for infinite width, so that's why I'd like to be able to achieve this via css or javascript.
How can this be done?
Open your image editor.
Crop the image to the 1px
you want.
Insert as background-image
and style with repeat-X
.
http://www.w3schools.com/cssref/tryit.asp?filename=trycss_background-repeaty
EDIT 1
Based on the following answer:
put background image in center and repeat last pixel to left and right
You could try the border-image-source
style.