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)
-   -   CSS issue: changing the width (https://forum.x-cart.com/showthread.php?t=58152)

seller 02-21-2011 11:29 AM

CSS issue: changing the width
 
Hi, I am trying to install the new 4.4.2 with the 3 columns template but I want to modify it so it won't be stretched to the full width of the screen.
I want a fixed width of 960 pixels

Where can I change it?

pauldodman 02-22-2011 12:49 AM

Re: CSS issue: changing the width
 
Find the main.css file being used, then find the #page-container class.

Change this to:

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

seller 02-22-2011 10:46 AM

Re: CSS issue: changing the width
 
Thanks Paul!!!
works great

JWait 10-27-2011 06:34 AM

Re: CSS issue: changing the width
 
Where would I change the color of the background outside of the page container?

JWait 10-27-2011 07:30 AM

Re: CSS issue: changing the width
 
Also, is there any problem using "max-width" instead of "width"?

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

This should mean that on any browser set below 1200 that it will render to fit the screen (without having a width scroll bar), and any browser set over 1200 it will fix the width at 1200 pixels and center the page, at least that is the way I understand it.


All times are GMT -8. The time now is 08:56 AM.

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