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

Background colour

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-31-2009, 01:29 PM
 
valks1 valks1 is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default Background colour

hi

i make a change of colour to the background and save it, but the colour does not change can you please help.


html,body {
height: 100%;
background-color: #ffffff;
margin: 0px;
padding: 0px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
min-width: 780px;
border: 0px none;
__________________
valks1
X Cart Gold 4.2
http://www.networkingsuperstore.co.uk
Reply With Quote
  #2  
Old 04-01-2009, 01:41 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Background colour

Yes, it is placed in the line 9 of your skin1/main.css
Code:
background-color: #ffffff;

I replaced it with
Code:
background-color: #cccccc;
and it works.
Try to empty your browser cache

if you mean that you can't edit files in admin try this patch
http://forum.x-cart.com/showthread.php?t=46155
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #3  
Old 04-01-2009, 11:21 AM
 
valks1 valks1 is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default Re: Background colour

I still cant get it to work!
I have changed the colour#cccccc;
But it does still not show.
I have ctrl f5 in explorer but still the same.
My colour line is 12 and not 9

Any ideas ?

/*
$Id: main.css,v 1.130 2008/12/11 09:14:58 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*/
/*
general tags styles

html,body {
height: 100%;
background-color: #oooooo;
margin: 0px;
padding: 0px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
min-width: 780px;
border: 0px none;
__________________
valks1
X Cart Gold 4.2
http://www.networkingsuperstore.co.uk
Reply With Quote
  #4  
Old 04-01-2009, 06:45 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Background colour

the tag may be re-defined later in the .css file
__________________
xcart 5.1.2
Reply With Quote
  #5  
Old 04-01-2009, 08:12 PM
 
cloudywool cloudywool is offline
 

Member
  
Join Date: Mar 2009
Posts: 15
 

Default Re: Background colour

i m using 4.2 and this is how it worked for me, altho the bg color i changed to was ugly and i changed it back later. if you want to change the look just changing the bg color isnt enough, u got to create a whole new theme to look consistent, anyways.
this is how i changed bg:
locate skin1/main.css
copy paste main.css in text edit
command+F(in mac) to locate code"#ffffff" then replace all "#ffffff" with the color you want(because the css was too long and i wasnt entirely sure which #ffffff is in charge of the main bg so i just changed them all, a dumb method i'd say, but works)
paste the new main.css in skin1/main.css and save
reset safari or other browsers clean up the old data
load your site again and the bg should be changed(most likely to be ugly tho cause changing only one thing in a while design usually look weird)

MUST BACK UP YOUR MAIN.CSS BEFORE YOU EDIT IT, IN CASE YOU HATE THE NEW COLOR SO YOU CAN CHANGE IT BACK.
__________________
x-cart 4.2.0
Reply With Quote
  #6  
Old 04-01-2009, 08:35 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Background colour

The main background is either controlled by the html or body tag. Most people change the body tag.

If you have a site that stretches the entire width the screen you will need to change something else. Can't think of it for 4.2 right off the top of my head.
__________________
xcart 5.1.2
Reply With Quote
  #7  
Old 04-02-2009, 06:27 AM
 
retrtrtrytrutru retrtrtrytrutru is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 101
 

Default Re: Background colour

X-Cart v4.2 uses page-container and content-container DIVs for layout but they don't have any background colour by default. valks1 it would be easier if you would post a link to your website so we can examine the page code and the CSS file. By default, main.css would control your colours and layout and the mentioned line controls your background colour.
__________________
www.qualitylamps.eu
X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9

www.vervangjelamp.nl
X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2

Sorry for the weird user name, I registered it by mistake
Reply With Quote
  #8  
Old 04-02-2009, 11:49 AM
 
valks1 valks1 is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default Re: Background colour

My website is www.networkingsuperstore.co.uk
__________________
valks1
X Cart Gold 4.2
http://www.networkingsuperstore.co.uk
Reply With Quote
  #9  
Old 04-02-2009, 10:56 PM
 
retrtrtrytrutru retrtrtrytrutru is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 101
 

Default Re: Background colour

Hi valks1, I have looked at your site, in the source code I can see that you're using the following stylesheet:

Code:
<link rel="stylesheet" href="/skin1/skin1_c.css" />

Within this stylesheet the following statement is made:

Code:
HTML,BODY { MARGIN: 0px; PADDING: 0px; BACKGROUND-COLOR: #FFFFFF; }

This means that your background is set to white... Change the color code (#FFFFFF) and your background should change. Note that changing this code will most likely change your entire background, if you want the center table to remain white or a different color look up:

Code:
TABLE.Container { }

In your stylesheet (/skin1/skin1_c.css) and add:

Code:
TABLE.Container { BACKGROUND-COLOR: red; }

You can of course change red to any colour you want..
__________________
www.qualitylamps.eu
X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9

www.vervangjelamp.nl
X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2

Sorry for the weird user name, I registered it by mistake
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 06:35 AM.

   

 
X-Cart forums © 2001-2020