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

Background color

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-05-2003, 07:20 AM
 
Kanyon71 Kanyon71 is offline
 

Senior Member
  
Join Date: Oct 2002
Location: Lutz, FL
Posts: 128
 

Default Background color

I need to set a background color for a site using X-Cart the cart is set to like 75% width I set backgroud in the .css file and nothing happened. Anyone have any ideas how I can do this. You can look at the site at http://www.barconnections.com this is a live site. I need to change the white on the left and right side's of the cart and menu's.

Thanks,

Kanyon71
Reply With Quote
  #2  
Old 01-05-2003, 11:55 AM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

Add the BGCOLOR=#WHATEVER to the customer/home.tpl. Locate the <TD> for the left and right hand side of your page, or add a CSS CLASS STATEMENT (CLASS=SideTableBGColor) for example, and set the value of the BGCOLOR= in the CSS file to your colour choice.

SEE other examples in the CSS file.

Regards,
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote
  #3  
Old 01-06-2003, 01:10 PM
 
Kanyon71 Kanyon71 is offline
 

Senior Member
  
Join Date: Oct 2002
Location: Lutz, FL
Posts: 128
 

Default

Ok I tried both the BGCOLOR and the CSS way and no matter where I stuck the statement in the file is seemes to make no difference. I must be missing something simple here but for the life of me I cannot see it. Can someone post some code that shows me exactly where to stick this so it will do what's needed. lol I feel pretty dumb right now. Hate things I cannot get right the first time around.

Thanks,

Kanyon
Reply With Quote
  #4  
Old 01-06-2003, 01:25 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

if you do a view source on your page you see this ..

Code:
<html> <head> <title>The Down Under Shop For Aussie Beer Gear - Bar Connections - Home </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="description" content="The Down Under Shop For Aussie Beer Gear, where you can get everything but the beer!"> <meta name="keywords" content="australia, australian, bar, bar swag, victoria bitter, bitters, vb, xxxx beer, fosters, bundaberg rum, bundy rum, guinness beer, guiness, johnnie walker, johnie walker, scotch, jack daniels, bourbon, jim beam, whisky, wild turkey, whiskey, crown lager, southern comfort, carlton united brewery, brew, brewery, brewer, bar accessories, t-shirts, bar mat, caps, key rings, spirit measures, wine knife, hip flask, kozzie coolers, clocks, beer"> <link rel="stylesheet" href="../skin1/skin1.css"> </head> <body class="background">

look at the bottom there and you see that <body class="background">

thats the class in the css that you need to change
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 01-06-2003, 02:56 PM
 
Kanyon71 Kanyon71 is offline
 

Senior Member
  
Join Date: Oct 2002
Location: Lutz, FL
Posts: 128
 

Default

I just changed the code to read:

Code:
<body BGCOLOR="#000000">

There is no difference, any ideas?


Thanks,

Kanyon
Reply With Quote
  #6  
Old 01-06-2003, 03:07 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

you need to change the background class in the stylesheet rather then in the page itself
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 01-06-2003, 04:28 PM
 
Kanyon71 Kanyon71 is offline
 

Senior Member
  
Join Date: Oct 2002
Location: Lutz, FL
Posts: 128
 

Default

Ok I did that also no change. This is driving me batty.
Reply With Quote
  #8  
Old 01-06-2003, 04:36 PM
 
deb deb is offline
 

Advanced Member
  
Join Date: Dec 2002
Location: California
Posts: 60
 

Default

You don't say which XCart version you are working with, someone changed the style sheet significantly in the newest one... (grrrr)

Anyway, check the top line of the style sheet for BODY as a param, and edit the background definition there in it.
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 10:46 AM.

   

 
X-Cart forums © 2001-2020