This content has been marked as final.
Show 8 replies
-
1. Re: Repeat Background x and y not working
resdesign Feb 25, 2016 10:50 AM (in response to dreaminkiss)What about using "background-repeat": "repeat". I have it working.
-
2. Re: Repeat Background x and y not working
dreaminkiss Feb 25, 2016 11:03 AM (in response to resdesign) -
3. Re: Repeat Background x and y not working
dreaminkiss Feb 25, 2016 2:25 PM (in response to dreaminkiss)Any idea's on this one resdesign
-
4. Re: Repeat Background x and y not working
resdesign Feb 25, 2016 2:44 PM (in response to dreaminkiss) -
5. Re: Repeat Background x and y not working
dreaminkiss Feb 26, 2016 7:48 PM (in response to resdesign)Have any luck on this one yet?
-
6. Re: Repeat Background x and y not working
ddhayles Feb 29, 2016 3:15 AM (in response to dreaminkiss)1 person found this helpfulIt looks like at runtime the following attribute is being added by EA:
background-size: 100%;
If you set the background-size in your css to the same size of the grass2.png image then it should tile correctly:
sym.$("Rectangle3").css({'background-image':'url(images/grass2.png)','background-repeat': 'repeat','width':'400px','height':'400px','background-size':'79px 51px'});
-
7. Re: Repeat Background x and y not working
dreaminkiss Feb 29, 2016 8:21 AM (in response to ddhayles)I knew I should have tried that as well.
I was doing the width and height of the container, but never thought about the size of the image itself.
Thanks ddhayles. -
8. Re: Repeat Background x and y not working
resdesign Feb 29, 2016 11:05 AM (in response to ddhayles)Great find ddHayles!