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

Change width, center site & change background color

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 03-04-2009, 08:25 AM
 
balinor balinor is offline
 

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

Default Re: Change width, center site & change background color

Hi Tobias, could you please take a moment to update your signature with your X-Cart version? Thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #12  
Old 03-04-2009, 09:42 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

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

Default Re: Change width, center site & change background color

this is the CSS for centering the whole site.

#page-container {
min-height: 100%;
position: relative;
width:975px;
margin:0 auto 0 auto;
}

it works just tested.
__________________
xcart 5.1.2
Reply With Quote

The following user thanks ARW VISIONS for this useful post:
buyfroma (04-07-2009)
  #13  
Old 03-04-2009, 10:08 AM
  buckyreal2's Avatar 
buckyreal2 buckyreal2 is offline
 

Member
  
Join Date: Jul 2003
Location: Minneapolis, Minnesota
Posts: 11
 

Default Re: Change width, center site & change background color

Does this show my sig now?
__________________
X-Cart 4.2
Reply With Quote
  #14  
Old 03-04-2009, 10:14 AM
 
balinor balinor is offline
 

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

Default Re: Change width, center site & change background color

Yep, just add the .0 at the end of it - 4.2.0
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #15  
Old 04-06-2009, 12:12 PM
 
ATKOgirl ATKOgirl is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 448
 

Default Re: Change width, center site & change background color

Hi,

I tried this:


#page-container {
min-height: 100%;
position: relative;
width:975px;
margin:0 auto 0 auto;
}


It adjusted the width, but the site is still not centered. Any further insight anyone can offer is greatly appreciated.

Thanks!
__________________
X-Cart Versions: 4.1.10 and 4.2.0
Reply With Quote
  #16  
Old 04-07-2009, 12:09 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Change width, center site & change background color

Try also
Code:
body{text-align:center}
__________________
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
  #17  
Old 04-07-2009, 04:33 AM
 
racer_x racer_x is offline
 

Member
  
Join Date: Nov 2008
Posts: 25
 

Default Re: Change width, center site & change background color

Using x-cart 4.2.x... having similar issues. Mine will center just fine, but the header of the page will come down and overlay the page content.

Any ideas? This is frustrating...
__________________
X-Cart 4.1.X, LiteCommerce2.2
Reply With Quote
  #18  
Old 04-07-2009, 08:06 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Change width, center site & change background color

possibly you have unclosed div in your header.
__________________
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
  #19  
Old 04-07-2009, 08:26 AM
 
racer_x racer_x is offline
 

Member
  
Join Date: Nov 2008
Posts: 25
 

Default Re: Change width, center site & change background color

haven't touched the header? I started from scratch on a new store..
__________________
X-Cart 4.1.X, LiteCommerce2.2
Reply With Quote
  #20  
Old 04-07-2009, 08:42 AM
 
racer_x racer_x is offline
 

Member
  
Join Date: Nov 2008
Posts: 25
 

Default Re: Change width, center site & change background color

interesting. Just re-loaded main.css and it went away.

By the way, the fix described above should work to center the page; post your complete code for the 2 .css rules #page-container and #content-container please.
__________________
X-Cart 4.1.X, LiteCommerce2.2
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 05:09 PM.

   

 
X-Cart forums © 2001-2020