Re: Centering site and Fixed width for X-Cart 4.3
Thanks for all the replies and advice.
For the record. there are three lines that center and set the width. I actually figured it out myself from just simple CSS settings that I was already using in another website.
These settings are in the main.css file
html,body {
height: 100%;
background-color: #ffffff;
margin: 0px;
padding: 0px;
margin-left: auto;
margin-right: auto;
The margin left and right auto cause the page to auto center. These commands are not present in the stock template.
Then just below that in the stock template they set a minimum width and all you have to do is set the max width.
min-width: 780px;
max-width:995px;
Just an FYI, but in the template I am using. 4.3 neon lights
If you set the max width smaller than 995, it causes text to roll over to another line in the cart checkout and looks bad. Who ever designed this template basically set-it up to be used at approx. 1000px or wider.
BTW, Amazon.com is set to a minimum of 980. But their site is completely dynamic. If you have a wider monitor and browser settings the site adds products and images that are not there if the browser and monitor are narrower. Very cool stuff....
Thanks all
__________________
Tim Glavin
X-Cart 4.3
|