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)
-   -   How do i center my layout (https://forum.x-cart.com/showthread.php?t=34113)

neto 09-22-2007 05:35 AM

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

mcitde 09-22-2007 06:27 AM

Re: How do i center my layout
 
You need to open skin1/rectangle_top.tpl and put a center to that table.

carpeperdiem 09-22-2007 06:46 AM

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.

chris.barber 09-27-2007 01:21 PM

Re: How do i center my layout
 
Cool, I was looking for guidance on how to do this, it worked a treat thanks carpeperdiem


All times are GMT -8. The time now is 11:26 PM.

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