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

Centering site and fixed width 4.6.x

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-29-2013, 11:54 AM
  johngwms's Avatar 
johngwms johngwms is offline
 

Senior Member
  
Join Date: Mar 2013
Location: North Wales
Posts: 191
 

Default Centering site and fixed width 4.6.x

I need to center my site and fix its width.

Other posts suggest that the css class page-container should be set to:

#page-container {
width: 1024px;
margin: 0 auto;
}

This works except the top header with company logo still fills the whole width of the screen.

Can anyone explain what is going on here? I need the width and centering to apply to the whole page.

Many thanks.
__________________
John Legg
www.TheDebugStore.com

5.4.1.18 Business, Crisp White Skin Template
Backorder-Preorder Module
X-Cart to Zoho Creator (in progress)
Zoho Creator <-> Zoho Inventory for order processing
NGINX hosted - XC virtual server
Reply With Quote
  #2  
Old 10-29-2013, 08:45 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Centering site and fixed width 4.6.x

John, first off what skin are you using?

X-cart's header is not really inside the page container. It is positioned absolute, and the html is near the bottom of the page (this is good for SEO, pushes the main content up in Google's eye.

If you can post a link to your page, we can take a look at your CSS and suggest tweaks.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 10-30-2013, 12:37 AM
  johngwms's Avatar 
johngwms johngwms is offline
 

Senior Member
  
Join Date: Mar 2013
Location: North Wales
Posts: 191
 

Default Re: Centering site and fixed width 4.6.x

Hi Mike

Thank you for responding.

Here is the site, in the process of being setup (not live):

http://www.thedebugstore.com/x-cart461/

The skin is a customised version of Light & Lucid (3-column).
__________________
John Legg
www.TheDebugStore.com

5.4.1.18 Business, Crisp White Skin Template
Backorder-Preorder Module
X-Cart to Zoho Creator (in progress)
Zoho Creator <-> Zoho Inventory for order processing
NGINX hosted - XC virtual server
Reply With Quote
  #4  
Old 10-30-2013, 12:50 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Centering site and fixed width 4.6.x

John,
Take a look at this screenshot: https://www.dropbox.com/s/cwfp2oowx89ylv8/screenie.png -hope that works first time I've ever shared an image that way. It won;t be up forever.

When you override things in Google Chrome, the css works fine. When you are building a site, it is a good idea to turn off the css combining in General settings. helps you understand where you need to edit the file. Turn that off, and we can have a proper look.

Try adding the css that I did in the screenshot, and see if it works.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
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 07:36 AM.

   

 
X-Cart forums © 2001-2020