At long last Im moving to 2.11 but have come across a problem with the new wrapper template.
I want the entire site to have a certain image background. I specify it in the wrapper template and it shows in the header and footer but I get a default? white background in the main part. I have tried to put the div class=main in a 100% wide table with the required background but that doesnt seem to work either. I cant see how I can specify the page background on the individual pages ie. main.tpl as there is no body tag.
I could put the everything in main.tpl in a 100% table but I actually want it to be centred 95% so I would then get 2 stripes of white on either side.
Hope you understand what Im trying to get at...thanks
Comments on Main background problem
Member
Usergroup: Member
Joined: Jan 11, 2004
Total Topics: 9
Total Comments: 24
At long last Im moving to 2.11 but have come across a problem with the new wrapper template.
I want the entire site to have a certain image background. I specify it in the wrapper template and it shows in the header and footer but I get a default? white background in the main part. I have tried to put the div class=main in a 100% wide table with the required background but that doesnt seem to work either. I cant see how I can specify the page background on the individual pages ie. main.tpl as there is no body tag.
I could put the everything in main.tpl in a 100% table but I actually want it to be centred 95% so I would then get 2 stripes of white on either side.
Hope you understand what Im trying to get at...thanks
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Just remove the if you don't want the different background for the middle section.
Wrappers apply to all pages of the site (except WSN Codes or the like where specifically excluded). Main.tpl's body tag is specified in wrapper.tpl.