Shane Wilcox
Posts: 0
Joined: Wed Aug 06, 2014 12:03 am

Resizing image and how to use uploaded image from library.

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.

Shane Wilcox
Posts: 0
Joined: Wed Aug 06, 2014 12:03 am

Resizing image and how to use uploaded image from library.

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.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Resizing image and how to use uploaded image from library.

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.

Return to “Issues”