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

center all the store, Help !

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-20-2011, 07:50 AM
 
Olivierv Olivierv is offline
 

Member
  
Join Date: Feb 2009
Posts: 17
 

Default center all the store, Help !

Hello,

(sorry for my bad english)

I have updating my xcart to the last version 4.4.3
http://www.chip-hockeyshop.com/home.php?shopkey=321

I use vivid dreams Chromo template.

I would like fix width to 1300px and centered all my store.

I have editing 2 sections in main.css in folder \skin\common_files

body
{
height: 100%;background-color: #fff;
margin: 0;
padding: 0;
min-width: 1300px;
border: 0 none;
}

----------

#page-container {
min-height: 100%;
position: relative;
width: 1300px;
margin:0 auto;
}


the width is OK but the store is left-aligned, i would like to center all.

Thank you for your help.

Oliver


Reply With Quote
  #2  
Old 06-20-2011, 08:28 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: center all the store, Help !

Quote:
Originally Posted by Olivierv
Hello,

(sorry for my bad english)

I have updating my xcart to the last version 4.4.3
http://www.chip-hockeyshop.com/home.php?shopkey=321

I use vivid dreams Chromo template.

I would like fix width to 1300px and centered all my store.

I have editing 2 sections in main.css in folder \skin\common_files

body
{
height: 100%;background-color: #fff;
margin: 0;
padding: 0;
min-width: 1300px;
border: 0 none;
}

----------

#page-container {
min-height: 100%;
position: relative;
width: 1300px;
margin:0 auto;
}


the width is OK but the store is left-aligned, i would like to center all.

Thank you for your help.

Oliver



Try
Code:
body { height: 100%; background-color: #fff; margin: 0 auto; width: 1300px; border: 0 none; }
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #3  
Old 06-20-2011, 09:21 AM
 
Olivierv Olivierv is offline
 

Member
  
Join Date: Feb 2009
Posts: 17
 

Default Re: center all the store, Help !

thank you but no change, always left-aligned.

Another idea ?
__________________
Olivier
Reply With Quote
  #4  
Old 06-20-2011, 09:27 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: center all the store, Help !

Quote:
Originally Posted by Olivierv
thank you but no change, always left-aligned.

Another idea ?
Did you use width: 1300px; instead of min-width: 1300px;

I just tried it again using firefox 4 and that centered it, not sure about IE
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #5  
Old 06-20-2011, 09:43 AM
 
Olivierv Olivierv is offline
 

Member
  
Join Date: Feb 2009
Posts: 17
 

Default Re: center all the store, Help !

I just tried with Firefox 4, IE8, IE9 is always centered on the left on my pc
__________________
Olivier
Reply With Quote
  #6  
Old 06-20-2011, 09:46 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: center all the store, Help !

Quote:
Originally Posted by Olivierv
I just tried with Firefox 4, IE8, IE9 is always centered on the left on my pc

Your code is still showing

Code:
/** * General tags styles */ html, body { height: 100%; background-color: #fff; margin: 0 auto; padding: 0; min-width: 1300px; border: 0 none; }

Did you put it back to what you had?
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #7  
Old 06-20-2011, 10:01 AM
 
Olivierv Olivierv is offline
 

Member
  
Join Date: Feb 2009
Posts: 17
 

Default Re: center all the store, Help !

Now, I just tried to put your code exactly, I have a screen rИsoltion full hd, the store is always on the left on my pc with IE or Firefox...
__________________
Olivier
Reply With Quote
  #8  
Old 06-20-2011, 10:03 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,192
 

Default Re: center all the store, Help !

Try cleanup.php to clear the cache
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #9  
Old 06-20-2011, 11:16 AM
 
Olivierv Olivierv is offline
 

Member
  
Join Date: Feb 2009
Posts: 17
 

Default Re: center all the store, Help !

OK, I tried cleanup.php but no effect...

http://www.chip-hockeyshop.com/home.php?shopkey=321
__________________
Olivier
Reply With Quote
  #10  
Old 06-20-2011, 11:45 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: center all the store, Help !

Quote:
Originally Posted by Olivierv
Now, I just tried to put your code exactly, I have a screen rИsoltion full hd, the store is always on the left on my pc with IE or Firefox...

Your css is showing,

Code:
html, body { height: 100%; background-color: #fff; margin: 0 auto; border: 0 none; }

and not

Code:
html, body { height: 100%; background-color: #fff; margin: 0 auto; width: 1300px; border: 0 none; }

as I suggested. Have you tried that exact code because it centers the site for me in firefox and in IE
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
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:21 AM.

   

 
X-Cart forums © 2001-2020