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

Changing Background image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-19-2005, 04:13 PM
 
campi54 campi54 is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Anaheim, CA
Posts: 91
 

Default Changing Background image

OK so now that I have the installation of this thing down I can direct my attention to the design.

Can anyone give me some advice on changing the background of the center table.
What I would like to accomplish is a single image in the center column no matter where I navigate to. I tried adding the tag

<TD background="{$ImagesDir}images/palm2sm.jpg" align=middle valign=top>

to the customer/home_main.tpl

all I got was the center table getting shifted over.
any insight to what I did wrong would be much appreciated.

Thanks
__________________
x-cart Gold 4.0.12
Server Linux
Accessing from Mac OS 10.4
Reply With Quote
  #2  
Old 01-19-2005, 06:18 PM
 
balinor balinor is offline
 

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

Default

Yep, your code isn't quite right. First, you should use CSS for this instead of the depreciated 'background=' tag. Replace the td tag that controls the center of the layout area with this:

Code:
<td class="background1">

Then, open up skin1.css and add this:

Code:
.background1 {background-image: url(images/palm2sm.jpg); background-position: 50% 50%; background-repeat: no-repeat;}

That should do the trick.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-19-2005, 10:42 PM
 
campi54 campi54 is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Anaheim, CA
Posts: 91
 

Default

Sweet!!
I beleive that'll do it.

Thanks a ton balinor!
__________________
x-cart Gold 4.0.12
Server Linux
Accessing from Mac OS 10.4
Reply With Quote
  #4  
Old 01-20-2005, 08:30 AM
 
campi54 campi54 is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Anaheim, CA
Posts: 91
 

Default

Just saw somthing.
When I enter featured products they have a solid white background.
So I have a white bar cutting across the image.

If I'm on the right track, which line in the css would I set to transparent?

Thanks again for getting me this far.

Michael
__________________
x-cart Gold 4.0.12
Server Linux
Accessing from Mac OS 10.4
Reply With Quote
  #5  
Old 01-20-2005, 08:33 AM
 
balinor balinor is offline
 

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

Default

Post a url so we can see what you are talking about.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 01-20-2005, 08:40 AM
 
campi54 campi54 is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Anaheim, CA
Posts: 91
 

Default

http://www.caltape.com/caltape/home.php?cat=1
__________________
x-cart Gold 4.0.12
Server Linux
Accessing from Mac OS 10.4
Reply With Quote
  #7  
Old 01-20-2005, 08:43 AM
 
campi54 campi54 is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Anaheim, CA
Posts: 91
 

Default

Also if you click on a product the tree has moved down but I think I have that figured out.
__________________
x-cart Gold 4.0.12
Server Linux
Accessing from Mac OS 10.4
Reply With Quote
  #8  
Old 01-20-2005, 08:45 AM
 
balinor balinor is offline
 

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

Default

Try removing the background-color: class in the Dialogbox style in skin1.css.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 01-20-2005, 08:57 AM
 
campi54 campi54 is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Anaheim, CA
Posts: 91
 

Default

Thats the one.
Now all I have to do is make the images tranparent.

Thanks again!!
__________________
x-cart Gold 4.0.12
Server Linux
Accessing from Mac OS 10.4
Reply With Quote
  #10  
Old 01-21-2005, 06:33 AM
 
Mary Jo Robins Mary Jo Robins is offline
 

Advanced Member
  
Join Date: Aug 2003
Location: Virginia Beach, VA 23462
Posts: 87
 

Default Strange Webmaster mode

Quote:
Originally Posted by campi54
Thats the one.
Now all I have to do is make the images tranparent.

Thanks again!!

Hey Campi54,

Do you have your webmaster mode on? Every time I click you link to your web page I get webmaster debug window up?

Bob
__________________
X-Cart version 4.0.14
Sales-n-Stats 1.1 build 36
PHP 5.0.5
MySQL server 4.1.22-Standard
Perl 5.008
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:49 AM.

   

 
X-Cart forums © 2001-2020