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

Insert Background Image Throughout Site

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-16-2007, 06:14 AM
 
Patti@tiddiesinc.com Patti@tiddiesinc.com is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 41
 

Default Insert Background Image Throughout Site

Please help! I have been reading the posts for 2 weeks now, and have been unsuccessful at every attempt to insert a background jpg for my site. I can't get it to appear anywhere!

I have inserted this language into skin1.CSS but do not know how to call it or where to place the command to call it. Do I have to call it from every single template? I want it to at least appear as the background of the home page and on the splash page.

BODY {
MARGIN-TOP: 0 px; MARGIN-BOTTOM: 0 px; MARGIN-LEFT: 0 px; MARGIN-RIGHT: 0 px;
BACKGROUND-COLOR: #DFF5F2;
BACKGROUND-IMAGE: skin1\bg-c.jpg
}

__________________
www.mytiddies.com
X-Cart Version 4.0.19
Reply With Quote
  #2  
Old 03-16-2007, 06:18 AM
 
balinor balinor is offline
 

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

Default Re: Insert Background Image Throughout Site

You are using the wrong CSS format. The correct format for a background image is:

background: url(images/imagename.jpg)
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-16-2007, 07:00 AM
 
Patti@tiddiesinc.com Patti@tiddiesinc.com is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 41
 

Default Re: Insert Background Image Throughout Site

Like this?

BODY {
MARGIN-TOP: 0 px; MARGIN-BOTTOM: 0 px; MARGIN-LEFT: 0 px; MARGIN-RIGHT: 0 px;
BACKGROUND-COLOR: #DFF5F2;
BACKGROUND: mytiddies.com/xcart (images/bg-c.jpg)
}
__________________
www.mytiddies.com
X-Cart Version 4.0.19
Reply With Quote
  #4  
Old 03-16-2007, 07:08 AM
 
balinor balinor is offline
 

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

Default Re: Insert Background Image Throughout Site

No, exactly as I showed it:

background: url(images/bg-c.jpg)
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-16-2007, 07:09 AM
 
Patti@tiddiesinc.com Patti@tiddiesinc.com is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 41
 

Default Re: Insert Background Image Throughout Site

Wow - thanks! You are awesome!
__________________
www.mytiddies.com
X-Cart Version 4.0.19
Reply With Quote
  #6  
Old 03-16-2007, 07:15 AM
 
Patti@tiddiesinc.com Patti@tiddiesinc.com is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 41
 

Default Re: Insert Background Image Throughout Site

Balinor,

Can I ask you one more question? We have a splash page (temporarily) until I can figure out how to get the contents to appear on the home.php page. How do I get the background to appear in the splash page in the meantime?
__________________
www.mytiddies.com
X-Cart Version 4.0.19
Reply With Quote
  #7  
Old 03-16-2007, 07:40 AM
 
balinor balinor is offline
 

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

Default Re: Insert Background Image Throughout Site

Well, it isn't going to work the same, as the splash page is a static html page. You would need to either create a new stylesheet for the splash page, or include the code for the background image right in the body tag.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 11:25 AM.

   

 
X-Cart forums © 2001-2020