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

Change width, center site & change background color

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 04-22-2009, 06:50 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default Re: Change width, center site & change background color

I too am stuck on centering the entire site.

I can set the width fine but it stays on the left

Anyone got a fix for this yet as I have tried the ideas from earlier posts in this section.
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #22  
Old 04-22-2009, 06:56 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Change width, center site & change background color

change this


#page-container {
min-height: 100%;
position: relative;
width:975px;
}

to this

#page-container {
min-height: 100%;
position: relative;
width:975px;
margin:0 auto;
}
__________________
xcart 5.1.2
Reply With Quote
  #23  
Old 04-23-2009, 12:20 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default Re: Change width, center site & change background color

Thanks Ashley - worked once I reloaded the main.css file from the dist pack.

Interesting that I tried that yesterday and it did not work.
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #24  
Old 01-07-2010, 03:09 PM
 
ceLL ceLL is offline
 

Member
  
Join Date: Mar 2009
Location: Winnipeg, MB, Canada
Posts: 24
 

Default Re: Change width, center site & change background color

Hello,

Sorry to bring back an older thread, though I seem to be having a similar issue. I am trying to center my store, now it's centering in Firefox, Chrome, Safari and Opera fine, though it will not center in IE7/8 and it just messed right up in IE6. My main concern being the page centering in IE7/8.

My code for the body and page-container are as follows:

Code:
html,body { background-color: #E1E1E1; border: 0px none; font-family: verdana, arial, helvetica, sans-serif; font-size: 11px; height: 100%; margin: 0 auto; padding: 0px; text-align: center; width: 950px; }

Code:
#page-container { background: #ffffff; min-height: 100%; position: relative; text-align: left; }

Any help would be greatly appreciated.

Cheers
__________________
Sean

X-Cart Gold - 4.2.1
PHP - 5.2.9-1
MySQL - 5.1.32
IIS 6.0 w/ FastCGI
Windows Server 2003
Reply With Quote
  #25  
Old 01-07-2010, 03:27 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Change width, center site & change background color

html,body {
background-color: #E1E1E1;
border: 0px none;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
height: 100%;
padding: 0px;
text-align: center;
width: 100%;
}

#page-container {
background: #ffffff;
min-height: 100%;
position: relative;
text-align: left;
margin:auto 0;
}
__________________
xcart 5.1.2
Reply With Quote
  #26  
Old 01-07-2010, 03:28 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Change width, center site & change background color

oops I mean

#page-container {
background: #ffffff;
min-height: 100%;
position: relative;
text-align: left;
margin:0 auto;
}
__________________
xcart 5.1.2
Reply With Quote
  #27  
Old 01-07-2010, 04:12 PM
 
ceLL ceLL is offline
 

Member
  
Join Date: Mar 2009
Location: Winnipeg, MB, Canada
Posts: 24
 

Default Re: Change width, center site & change background color

Thanks for the reply though I have tried that, as well I want a fixed width.

The top is as well no longer flush so I added margin-top: 0px; to the body portion.

Another problem with that is now it doesn't center in any browser.

The site is located at: http://new.cbitsecurity.com if you would like to take a peek at it.

Cheers
__________________
Sean

X-Cart Gold - 4.2.1
PHP - 5.2.9-1
MySQL - 5.1.32
IIS 6.0 w/ FastCGI
Windows Server 2003
Reply With Quote
  #28  
Old 01-12-2010, 07:46 AM
 
ceLL ceLL is offline
 

Member
  
Join Date: Mar 2009
Location: Winnipeg, MB, Canada
Posts: 24
 

Default Re: Change width, center site & change background color

No one has any further ideas?

This is bothering me as all the IE hacks I have tried work in every other browser except IE =/

Any further help would be appreciated.
__________________
Sean

X-Cart Gold - 4.2.1
PHP - 5.2.9-1
MySQL - 5.1.32
IIS 6.0 w/ FastCGI
Windows Server 2003
Reply With Quote
  #29  
Old 01-12-2010, 07:54 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Change width, center site & change background color

#page-container {
background: #ffffff;
min-height: 100%;
position: relative;
text-align: left;
margin:0 auto;
width:950px;
}
__________________
xcart 5.1.2
Reply With Quote

The following user thanks ARW VISIONS for this useful post:
ceLL (01-12-2010)
  #30  
Old 01-12-2010, 07:55 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Change width, center site & change background color

just add the width property
__________________
xcart 5.1.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:23 PM.

   

 
X-Cart forums © 2001-2020