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)
-   -   Struggling with template edits (https://forum.x-cart.com/showthread.php?t=63289)

JonnyC 04-15-2012 02:38 PM

Struggling with template edits
 
Hi everyone

I am setting up a new site for a friend but really struggling with the new templates in 4.4.5

I have managed to edit the template so the site isnt full width, but cant get it to center properly:

http://www.mediaservit.co.uk/shop/

I am also trying to add a background similar to the homepage, but that doesnt seem to work either http://www.mediaservit.co.uk

Would sincerly appreciate it if anyone caan give me an help as to what I have done wrong, I have tried searching the forums, and have tried other suggestions for centering the site, but it doesnt seem to work correctly on my site.

Many thanks

Jon

totaltec 04-15-2012 06:10 PM

Re: Struggling with template edits
 
Hi Jon, try this:
#page-container {
background: none repeat scroll 0 0 #FFFFFF;
float: none;
margin: 0 auto;
min-height: 100%;
padding: 2px;
position: relative;
width: 1200px;
}


Add your background image to the body:
html, body {
background: url("../images/bg.jpg") repeat-x scroll center top transparent;
color: #000000;
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;
}
Make these edits to /css/altskin.css of your current template.
Place bg.jpg in the /images directory of your current template

JonnyC 04-16-2012 03:57 AM

Re: Struggling with template edits
 
Hi Mike

Thanks so much for your reply and assistance.

I have applied your edits and they have worked, but I have a white bar running down the right side of the site, which also seems to be knocking the site off centre.

Thanks again

Jon

totaltec 04-16-2012 04:50 AM

Re: Struggling with template edits
 
Jon,
It looks like your content container is set to 80%
#content-container {
clear: both;
float: left;
margin-top: 140px;
overflow: hidden;
padding-bottom: 39px;
position: relative;
width: 80%;
}

That is what is causing the white bar I believe.

JonnyC 04-16-2012 05:11 AM

Re: Struggling with template edits
 
Works perfectly

Thanks so much for your help

Jon


All times are GMT -8. The time now is 04:44 AM.

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