8 Replies Latest reply on Feb 29, 2016 11:05 AM by resdesign

    Repeat Background x and y not working

    dreaminkiss Level 1

      Hello All;
      have the following image.



      I need to tile this image inside of a div.

      If I use the following code, it stretches the image, not repeating.


      sym.$('Rectangle3').css({"background-image":"url(images/grass2.png)","background-repeat":" repeat-y repeat-x", "height":"200px", "Width":"200px"});



      My question is, HOW?

      How can you repeat the image?