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)
-   -   Moving the site to the center (https://forum.x-cart.com/showthread.php?t=40938)

typeav 07-07-2008 07:07 AM

Moving the site to the center
 
The side position is all the way to the left how do I move it to the middle ?

Example, right now is like www.tigerdirect.com and I want it to be like www.target.com


Just need to know what file to modify.


Thanks!!!!!

Yurij 07-07-2008 07:41 AM

Re: Moving the site to the center
 
Quote:

Originally Posted by typeav
The side position is all the way to the left how do I move it to the middle ?

Example, right now is like www.tigerdirect.com and I want it to be like www.target.com


Just need to know what file to modify.


Thanks!!!!!


In the file "skin1/customer/home.tpl" immediately after the line:
PHP Code:

<body{$reading_direction_tag}{if $body_onload ne ''onload="javascript{$body_onload}"{/if}> 

insert the following code
PHP Code:

<div align="center"



then insert the following сode
PHP Code:

</div


before the line
PHP Code:

</body


typeav 07-07-2008 08:58 AM

Re: Moving the site to the center
 
didnt work

typeav 07-07-2008 09:00 AM

Re: Moving the site to the center
 
Ok it works, but everything is in the middle now.......Including colunms, products, etc etc

balinor 07-07-2008 10:04 AM

Re: Moving the site to the center
 
Yea, that won't quite work. Try replacing this:

<div align="center">

with this:

<div style="margin: 0 auto; width: 975px;">

Change the 975 to whatever width you want.

typeav 07-07-2008 01:11 PM

Re: Moving the site to the center
 
Balinor it works, thanks a lot. Let me make it clear to the audience.

In the file "skin1/customer/home.tpl" immediately after the line:

<body{$reading_direction_tag}{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}>

insert the following code:

<div style="margin: 0 auto; width: 975px;">

Change the 975 to whatever width you want.

typeav 07-07-2008 02:01 PM

Re: Moving the site to the center
 
Now, how can I move the check out page cart to the middle of the screen?

balinor 07-07-2008 02:09 PM

Re: Moving the site to the center
 
Do the same thing to the fast lane template which is in your modules/fast lane folder.

carpeperdiem 07-07-2008 02:26 PM

Re: Moving the site to the center
 
Another way to do this with css, and one less element in your html:

in your css file, change the TABLE.Container element to:

Code:

TABLE.Container { width: 960px; margin-left: auto; margin-right: auto; background-color: #FFFFFF; }

Accomplishes the same thing. Of course, edit the background-color to what you want it to be.

typeav 07-07-2008 06:08 PM

Re: Moving the site to the center
 
It works, thank you thank you thank you!!! To everybody for all the help.


All times are GMT -8. The time now is 06:58 AM.

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