w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

How can I make my background appear on every page?

How can I make my background appear on every page?

I now use: Tiggzi("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%');

But it appears only on the page where I put this code, not on the other pages.

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

How can I make my background appear on every page?

Hi,

For every page you can set class Class Name that contains custom CSS styles.

You can use relative path for CSS assets and themes:
../image/filename.jpg

If there are any special symbols (&, ', ; space) then they will be replaced with "_".

w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

How can I make my background appear on every page?

I see that in every page, this has a classname "mobileContent". So i put this in custom CSS:

.mobileContent {
background-image:Tiggzi.getImagePath('../image/swat_default_background.jpg');
background-size:"cover";
background-position: "center";
}

But nothing shows. Neither when I put background-image:Tiggzi.getImagePath('swat_default_background.jpg');

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

How can I make my background appear on every page?

Hi,

try this one:
code.mobileContent {
background-image: url('../image/swat_default_background.jpg');
background-size:"cover&quot
background-position: "center&quot
}
/code

Return to “Issues”