Victoria Ballance Tyson
Posts: 0
Joined: Sat Feb 23, 2013 10:10 pm

Background image

Background image just keeps repeating itself and I need it to fit to the screen.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Background image

Hi,

You can create CSS with the following code:codebackground-size: cover;
background-repeat: no-repeat;/code

Victoria Tyson
Posts: 0
Joined: Tue Mar 12, 2013 1:25 pm

Background image

Tiggzi('mobilecontainer').css('background-image','url("' + Tiggzi.getImagePath('album_cover.jpg') + '")')
Tiggzi('mobilecontainer').css background-repeat: no-repeat;
Tiggzi('mobilecontainer').css background-size: cover;

This is what I have within the load event and it does not work. the picture does not come up.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Background image

Hello! Please try next code (put it on screen Load event)

codeTiggzi("mobilecontainer10").css('background-image','url("' + Tiggzi.getImagePath('splash.jpg') + '")');
Tiggzi("mobilecontainer10").css('background-size','cover');
Tiggzi("mobilecontainer10").css('background-position','center');
Tiggzi("mobilecontainer10").css('position', 'absolute');
Tiggzi("mobilecontainer10").css('width', '100%');code

mobilecontainer10 - container name in your app
splash.jpg - image name
/code/code

Victoria Ballance Tyson
Posts: 0
Joined: Sat Feb 23, 2013 10:10 pm

Background image

that didn't work!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Background image

Hi,
Please give us an example of CSS or JS code you use.

Return to “Issues”