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

Change width, center site

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 08-24-2009, 03:48 PM
 
CDHSoftware CDHSoftware is offline
 

Member
  
Join Date: Aug 2009
Posts: 13
 

Default Re: Change width, center site

Hi,

I used your edit for the main.css. The shop now is the width I want but does not center.

http://www.cdhsoft.com/shop

Any ideas?

Regards

Carl
#4118809622
__________________
Carl
http://www.pipesmokerunleashed.com
X-Cart Gold 4.2.2
Reply With Quote
  #12  
Old 08-24-2009, 04:09 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

centered for me.
__________________
xcart 5.1.2
Reply With Quote
  #13  
Old 08-24-2009, 04:20 PM
 
CDHSoftware CDHSoftware is offline
 

Member
  
Join Date: Aug 2009
Posts: 13
 

Default Re: Change width, center site

On my site or yours?

Ok just checked in firefox and works fine. Just seems that IE 8.0 is not displaying correctly

Regards

Carl
__________________
Carl
http://www.pipesmokerunleashed.com
X-Cart Gold 4.2.2
Reply With Quote
  #14  
Old 08-24-2009, 04:22 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Change width, center site

Centered for me as well.

If your seeing it not centered in IE, you need to use some statements to use a modified css file for IE.
If it doesnt look right in chrome, its due to missing or wrong css/html.
__________________
- Shane Munroe
Reply With Quote
  #15  
Old 08-24-2009, 04:36 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

now not displaying at all.
__________________
xcart 5.1.2
Reply With Quote
  #16  
Old 08-24-2009, 04:41 PM
 
CDHSoftware CDHSoftware is offline
 

Member
  
Join Date: Aug 2009
Posts: 13
 

Default Re: Change width, center site

yeh, changing the skin to the original

Once I get the width and centering I want I'll just change the header to match the rest of the site

Not live yet so I can tweak a bit

Regards

Carl
__________________
Carl
http://www.pipesmokerunleashed.com
X-Cart Gold 4.2.2
Reply With Quote
  #17  
Old 08-24-2009, 05:19 PM
 
CDHSoftware CDHSoftware is offline
 

Member
  
Join Date: Aug 2009
Posts: 13
 

Default Re: Change width, center site

Ok, changed the skin to default and set the css values and IE 8 still shows it aligned left, but firefox shows it centered.

Yet it shows my main site pages centered in IE 8 using the same CSS settings

Wierd
__________________
Carl
http://www.pipesmokerunleashed.com
X-Cart Gold 4.2.2
Reply With Quote
  #18  
Old 08-24-2009, 05:25 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Change width, center site

Quote:
Originally Posted by CDHSoftware
Ok, changed the skin to default and set the css values and IE 8 still shows it aligned left, but firefox shows it centered.

Damned MS


You need to create a seperate css file for IE.
__________________
- Shane Munroe
Reply With Quote
  #19  
Old 08-24-2009, 11:42 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

no you don't. Centering the site with a fixed with is really only a couple of lines of code.

I don't understand why you are having trouble with this. I'd take a look at it for you if you like.

PM me.
__________________
xcart 5.1.2
Reply With Quote
  #20  
Old 08-25-2009, 05:28 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,193
 

Default Re: Resolved: Change width, center site

Quote:
Originally Posted by firstformedia
well i found it how to resolve, i had to add this to html,body:

html,body {
height: 100%;
width:950px;
background-color: #ffffff;
margin: 0 auto;
padding: 0px;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 12px;
min-width: 780px;
border: 0px none;
}

Put the width and margin calls in page-container id class not in body class. page-container is the class that wraps around the whole site
__________________
Steve Stoyanov
CFLSystems.com
Web Development
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 09:57 PM.

   

 
X-Cart forums © 2001-2020