Continuous background border

Border, background, background-size, background-clip, background-origin

I have a nice stone art border, don't i look pretty ?

  1. First we create a borderwhere the background will take place.
  2. Then we add the background: linear-gradient to make this effect the first color will be whiteso that she can cover the element, the second parameter is finally the backgroundthat we want a see on the border.
  3. With background-sizewe indicate that our background will cover our element.
  4. The background-clipinstruction allow us to show the backgroundon a certain area defined in the instruction.
  5. Finally the background-originspecify the origin of the image.