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

How do i center my layout

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-22-2007, 05:35 AM
 
neto neto is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 3
 

Talking How do i center my layout

How do i center my layout. I like to have a website that is centered. with shoot by 948px
i use x-cart 4.1.8

i have edit customer/home.php --> <table width="948" cellpadding="0" cellspacing="0" align="center">

Can any one tell me how i can edit my template to center my website?

greets,

martijn
__________________
martijn
Reply With Quote
  #2  
Old 09-22-2007, 06:27 AM
  mcitde's Avatar 
mcitde mcitde is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 61
 

Default Re: How do i center my layout

You need to open skin1/rectangle_top.tpl and put a center to that table.
__________________
v 4.1.8 and v 4.1.9
WIN XP: Apache 2.2.4, PHP 5.2.3, MySQL 5.0.45
UNIX: Apache 1.3, PHP 4.4.4, MySQL 5.0.22
Reply With Quote
  #3  
Old 09-22-2007, 06:46 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: How do i center my layout

Instead of editing the templates (using a <center> tag is not recommended), you can simply edit the css class that is controlling the entire table --

TABLE.Container

Try adding/editing these elements to TABLE.Container (in skin1.css):

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

There are other ways to do this. This works for me.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #4  
Old 09-27-2007, 01:21 PM
 
chris.barber chris.barber is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 74
 

Default Re: How do i center my layout

Cool, I was looking for guidance on how to do this, it worked a treat thanks carpeperdiem
__________________
Chris Barber
Version 4.1.9
MOD - BCSE Shipping Estimator
MOD - Shopzilla Feed
MOD - Price Match with Captcha
MOD - Links Manager 2008
MOD - One Page Checkout
MOD - Sitemap
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 02:54 PM.

   

 
X-Cart forums © 2001-2020