Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

header/footer background images

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-18-2008, 01:59 AM
 
tbm tbm is offline
 

Advanced Member
  
Join Date: Nov 2008
Posts: 39
 

Default header/footer background images

Hey,

Adding a header and footer to my x-cart site. Initially I just added basic tables to the rectangle_bottom.tpl and rectangle_top.tpl files, dumped the images into the tables and it worked fine. But I now want to set them as background images so i can over-lay menus, text etc.

after messing about with various table attributes I got as close as i could with tables using this:

Code:
<td height="52" width="988" style="margin-left:auto; background-image:url(images/footer.jpg); background-repeat: no-repeat">Text Text Text</td>

but I can't get it quite right and i want to use CSS. So I tried this:

in the table
Code:
<td class="new_footer"></td>

in the CSS
Code:
TD.new_footer { background-image: url(images/footer.jpg) top left repeat-x; }

but the image isn't even appearing. can anybody see where I might be going wrong?
__________________
Linux
X-Cart 4.1.11
Reply With Quote
  #2  
Old 12-18-2008, 03:21 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: header/footer background images

Did you add the image to skin1/images? Because that is where the images/ directory is if you are calling it from the CSS file.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-18-2008, 03:51 AM
 
tbm tbm is offline
 

Advanced Member
  
Join Date: Nov 2008
Posts: 39
 

Default Re: header/footer background images

I did. The image is there. It reallys seems like it should be working, but it's not.

Should I be able to call the class from the rectangle_bottom.tpl file? like, in the process of the .tpl file being embedded could the link to the skin1.css be broken?
__________________
Linux
X-Cart 4.1.11
Reply With Quote
  #4  
Old 12-18-2008, 04:29 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: header/footer background images

It should work fine. Try just the background image part to start:

background: url(images/footer.jpg);
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 12-18-2008, 05:10 AM
 
tbm tbm is offline
 

Advanced Member
  
Join Date: Nov 2008
Posts: 39
 

Default Re: header/footer background images

yeah, its not taking. here's exactly what i have.

this table in rectangle_bottom.tpl:

Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="new_footer"></td> </tr> </table>

and i've added this to my CSS:

Code:
TD.new_footer { background: url(images/footer.jpg); }

footer.jpg is sitting in my skin1/images folder. this all looks fine, but i am not seeing the image.
__________________
Linux
X-Cart 4.1.11
Reply With Quote
  #6  
Old 12-18-2008, 05:23 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: header/footer background images

Put some content IN the table cell so that it has some room to show the image
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 12-18-2008, 05:33 AM
 
tbm tbm is offline
 

Advanced Member
  
Join Date: Nov 2008
Posts: 39
 

Default Re: header/footer background images

have it sorted!!!

silly syntax error. thanks!!!
__________________
Linux
X-Cart 4.1.11
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:26 AM.

   

 
X-Cart forums © 2001-2020