WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Main background problem

Version: 2.11
printPrint


Main background problem
jem71
Member

Usergroup: Member
Joined: Jan 11, 2004
Total Topics: 9
Total Posts: 24
Posted 01/18/05 - 02:26 AM:
quote post
#1
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
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6175
Posted 01/18/05 - 12:34 PM:
quote post
#2
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.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.