Page 1 of 1

How can I make my background appear on every page?

Posted: Wed May 15, 2013 11:51 am
by w

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.


How can I make my background appear on every page?

Posted: Wed May 15, 2013 12:33 pm
by Kateryna Grynko

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 "_".


How can I make my background appear on every page?

Posted: Wed May 15, 2013 12:53 pm
by w

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');


How can I make my background appear on every page?

Posted: Wed May 15, 2013 1:35 pm
by Kateryna Grynko

Hi,

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