How do I resize a background image to scale to a container? I've tried all of the posted questions code and putting it on the load action but I can't get it to work for the scaling part. Would really like some help.
How do I resize a background image to scale to a container? I've tried all of the posted questions code and putting it on the load action but I can't get it to work for the scaling part. Would really like some help.
Hello,
Please check this doc http://devcenter.appery.io/documentat...
Ok so how do I scale the image so it fits to any size screen? I've tried some of the older code posted from this question but I can't get it to work when adding it as a load event using javascript.
Hi Shane,
Please use this code:
pre
/* you should replace this rule with yours /
.yourContainerClass{
/ here you should set your goal url */
background-image: url(../../../../files/views/assets/image/phone.png);
Code: Select all
background-size: cover; }
/pre
Regards.