X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Change width, center site & change background color (https://forum.x-cart.com/showthread.php?t=45824)

balinor 03-04-2009 08:25 AM

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!

ARW VISIONS 03-04-2009 09:42 AM

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.

buckyreal2 03-04-2009 10:08 AM

Re: Change width, center site & change background color
 
Does this show my sig now?

balinor 03-04-2009 10:14 AM

Re: Change width, center site & change background color
 
Yep, just add the .0 at the end of it - 4.2.0

ATKOgirl 04-06-2009 12:12 PM

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!

Victor D 04-07-2009 12:09 AM

Re: Change width, center site & change background color
 
Try also
Code:

body{text-align:center}

racer_x 04-07-2009 04:33 AM

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...

Victor D 04-07-2009 08:06 AM

Re: Change width, center site & change background color
 
possibly you have unclosed div in your header.

racer_x 04-07-2009 08:26 AM

Re: Change width, center site & change background color
 
haven't touched the header? I started from scratch on a new store..

racer_x 04-07-2009 08:42 AM

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.


All times are GMT -8. The time now is 01:44 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.